Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-20292

Incorrect form generation when action uri refers an ssl zone

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: High High
    • Customer request
    • 4.7.0
    • None
    • None
    • eZ Publish 4.x

    Description

      Form generation does not take into account the need to convert form action when ssl zone is defined for the module/function

      For instance, if one setups a site.ini with the following:

      [SSLZoneSettings]
      SSLZones=enabled
      ModuleViewAccessMode[]
      ModuleViewAccessMode[content/tipafriend]=ssl
      ModuleViewAccessMode[content/action]=ssl
      ModuleViewAccessMode[user/*]=ssl
      ModuleViewAccessMode[content/*]=keep
      ModuleViewAccessMode[layout/*]=keep
      ModuleViewAccessMode[ezjscore/call]=keep
      

      And attempts to create some content from the front end, an "Object is unavailable" error will show up as soon as one submits the "create here" form.

      What actually happens right now is that the form is sent in HTTP and the redirection to HTTPS takes place on the server, but as expected, the posted values are lost in the process

      Steps to reproduce:

      Configure an environment with the SSLZones (as defined above)
      Login in front end, select a class, and click the "create here" button

      Attachments

        Activity

          People

            Unassigned Unassigned
            joaquim.cavalleri-obsolete@ez.no Joaquim Cavalleri (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h