Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Medium Medium
    • Resolution: Fixed
    • Affects Version/s: 4.1.4, 4.2.0, 4.3.0, 4.4.0, 4.5.0, 4.7.0-dev, Known Issues Legacy Stack, 4.6.0, 5.0
    • Component/s: Caching, Documentation
    • Labels:
      None
    • Environment:

      Operating System: RHEL 6.1 EE
      PHP Version: 5.3.3
      Database and version: 5.1.61
      Browser (and version): Any

      Description

      If you change your sslsubstrees in site.ini after they've been defined, they are simply ignored.

      Steps to reproduce

      Setup
      1. Open terminal window
      2. Add the following to you site.ini.append.php

        [SSLZoneSettings]
        # Enable/disable the SSL zones functionality.
        SSLZones=enabled
        # Content subtrees we must use SSL for.
        # (currently, only content/view and content/edit respect this setting)
        #
        # Examples:
        # SSLSubtrees[]=/news
        # SSLSubtrees[]=/polls
        SSLSubtrees[]=/sports
        

      3. Clear the caches

        $ php bin/php/ezcache.php --clear-all --purge
        

      4. Add two folder
        1. Login into admin interface, using admin account
        2. Click on "Content structure" from the top menu
        3. Click on "Create new" button
        4. Choose "Folder" from the drop down list
        5. In the "Name (required):" fill in "News"
        6. Click on "Send for publishing" button
        7. Click on "Create new" button
        8. Choose "Folder" from the drop down list
        9. In the "Name (required):" fill in "Sports"
        10. Click on "Send for publishing" button
      5. Access you site frontend
        1. Click on "News" folder
        2. Verify that you're still in http mode
        3. Click on "Sports" folder
        4. Verify that you've changed to https mode
      6. Change SSLSubtrees
        1. Change the SSLSubress in site.ini.append.php to News

          [SSLZoneSettings]
          # Enable/disable the SSL zones functionality.
          SSLZones=enabled
          # Content subtrees we must use SSL for.
          # (currently, only content/view and content/edit respect this setting)
          #
          # Examples:
          # SSLSubtrees[]=/news
          # SSLSubtrees[]=/polls
          SSLSubtrees[]=/news
          

        2. Clear the caches

          $ php bin/php/ezcache.php --clear-all --purge
          

        3. Access you site frontend
          1. Click on "News" folder
          2. Verify that you're still in http mode
          3. Click on "Sports" folder
          4. Verify that you've changed to https mode

        Activity

        Pedro Resende created issue -
        Hide
        Pedro Resende added a comment -

        If you delete both folders and create new ones with the same names "News" and "Sports" it starts working

        Show
        Pedro Resende added a comment - If you delete both folders and create new ones with the same names "News" and "Sports" it starts working
        Hide
        J. J. Cavalleri added a comment - - edited

        Alternative workarounds:

        • Edit and publish any content
        • rm var/ezwebin_site/cache/ssl_zones_cache.php
        Show
        J. J. Cavalleri added a comment - - edited Alternative workarounds: Edit and publish any content rm var/ezwebin_site/cache/ssl_zones_cache.php
        Joaquim Cavalleri (Inactive) made changes -
        Field Original Value New Value
        Link This issue is duplicated by EZPNEXT-794 [ EZPNEXT-794 ]
        Joaquim Cavalleri (Inactive) made changes -
        Status Open [ 1 ] Backlog [ 10000 ]
        Gunnstein Lye made changes -
        Fix Version/s Customer request [ 11018 ]
        Gunnstein Lye made changes -
        Fix Version/s Customer request [ 11018 ]
        André Rømcke made changes -
        Affects Version/s Known Issues [ 11285 ]
        Affects Version/s 5.0.0 [ 10300 ]
        André Rømcke made changes -
        Affects Version/s Known Issues Legacy Stack [ 11286 ]
        Affects Version/s Known Issues 5.x Stack [ 11285 ]
        André Rømcke made changes -
        Workflow eZ Community Workflow [ 21496 ] eZ Engineering Scrumban Workflow [ 35754 ]
        Joaquim Cavalleri (Inactive) made changes -
        Fix Version/s Customer request [ 11018 ]
        Gunnstein Lye made changes -
        Status Backlog [ 10000 ] InputQ [ 10001 ]
        Bertrand Dunogier made changes -
        Assignee unknown [ unknown ] Bertrand Dunogier [ bertrand.dunogier@ez.no ]
        Description If you change your sslsubstrees in site.ini after they've been defined, they are simply ignored.

        h5. Steps to reproduce
        {code}
        Setup

        1. Open terminal window
        2. Add the following to you site.ini.append.php

        [SSLZoneSettings]
        # Enable/disable the SSL zones functionality.
        SSLZones=enabled
        # Content subtrees we must use SSL for.
        # (currently, only content/view and content/edit respect this setting)
        #
        # Examples:
        # SSLSubtrees[]=/news
        # SSLSubtrees[]=/polls
        SSLSubtrees[]=/sports

        3. Clear the caches

        $ php bin/php/ezcache.php --clear-all --purge

        Add two folder

        1. Login into admin interface, using admin account
        2. Click on "Content structure" from the top menu
        3. Click on "Create new" button
        4. Choose "Folder" from the drop down list
        5. In the "Name (required):" fill in "News"
        6. Click on "Send for publishing" button
        3. Click on "Create new" button
        4. Choose "Folder" from the drop down list
        5. In the "Name (required):" fill in "Sports"
        6. Click on "Send for publishing" button

        Access you site frontend

        1. Click on "News" folder
        2. Verify that you're still in http mode
        3. Click on "Sports" folder
        4. Verify that you've changed to https mode

        Change SSLSubtrees

        1.Change the SSLSubress in site.ini.append.php to News

        [SSLZoneSettings]
        # Enable/disable the SSL zones functionality.
        SSLZones=enabled
        # Content subtrees we must use SSL for.
        # (currently, only content/view and content/edit respect this setting)
        #
        # Examples:
        # SSLSubtrees[]=/news
        # SSLSubtrees[]=/polls
        SSLSubtrees[]=/news

        2. Clear the caches

        $ php bin/php/ezcache.php --clear-all --purge

        Access you site frontend

        1. Click on "News" folder
        2. Verify that you're still in http mode
        3. Click on "Sports" folder
        4. Verify that you've changed to https mode
        {code}

        If you change your sslsubstrees in site.ini after they've been defined, they are simply ignored.

        h4. Steps to reproduce

        h5. Setup

        1. Open terminal window
        2. Add the following to you site.ini.append.php

        {code}
        [SSLZoneSettings]
        # Enable/disable the SSL zones functionality.
        SSLZones=enabled
        # Content subtrees we must use SSL for.
        # (currently, only content/view and content/edit respect this setting)
        #
        # Examples:
        # SSLSubtrees[]=/news
        # SSLSubtrees[]=/polls
        SSLSubtrees[]=/sports
        {code}

        3. Clear the caches

        {code}
        $ php bin/php/ezcache.php --clear-all --purge
        {code}

        4. Add two folder

          1. Login into admin interface, using admin account
          2. Click on "Content structure" from the top menu
          3. Click on "Create new" button
          4. Choose "Folder" from the drop down list
          5. In the "Name (required):" fill in "News"
          6. Click on "Send for publishing" button
          3. Click on "Create new" button
          4. Choose "Folder" from the drop down list
          5. In the "Name (required):" fill in "Sports"
          6. Click on "Send for publishing" button

        5. Access you site frontend

          1. Click on "News" folder
          2. Verify that you're still in http mode
          3. Click on "Sports" folder
          4. Verify that you've changed to https mode

        6. Change SSLSubtrees

          1. Change the SSLSubress in site.ini.append.php to News

        {code}
        [SSLZoneSettings]
        # Enable/disable the SSL zones functionality.
        SSLZones=enabled
        # Content subtrees we must use SSL for.
        # (currently, only content/view and content/edit respect this setting)
        #
        # Examples:
        # SSLSubtrees[]=/news
        # SSLSubtrees[]=/polls
        SSLSubtrees[]=/news
        {code}

          2. Clear the caches

        {code}
        $ php bin/php/ezcache.php --clear-all --purge
        {code}

          3. Access you site frontend

            1. Click on "News" folder
            2. Verify that you're still in http mode
            3. Click on "Sports" folder
            4. Verify that you've changed to https mode

        Bertrand Dunogier made changes -
        Description If you change your sslsubstrees in site.ini after they've been defined, they are simply ignored.

        h4. Steps to reproduce

        h5. Setup

        1. Open terminal window
        2. Add the following to you site.ini.append.php

        {code}
        [SSLZoneSettings]
        # Enable/disable the SSL zones functionality.
        SSLZones=enabled
        # Content subtrees we must use SSL for.
        # (currently, only content/view and content/edit respect this setting)
        #
        # Examples:
        # SSLSubtrees[]=/news
        # SSLSubtrees[]=/polls
        SSLSubtrees[]=/sports
        {code}

        3. Clear the caches

        {code}
        $ php bin/php/ezcache.php --clear-all --purge
        {code}

        4. Add two folder

          1. Login into admin interface, using admin account
          2. Click on "Content structure" from the top menu
          3. Click on "Create new" button
          4. Choose "Folder" from the drop down list
          5. In the "Name (required):" fill in "News"
          6. Click on "Send for publishing" button
          3. Click on "Create new" button
          4. Choose "Folder" from the drop down list
          5. In the "Name (required):" fill in "Sports"
          6. Click on "Send for publishing" button

        5. Access you site frontend

          1. Click on "News" folder
          2. Verify that you're still in http mode
          3. Click on "Sports" folder
          4. Verify that you've changed to https mode

        6. Change SSLSubtrees

          1. Change the SSLSubress in site.ini.append.php to News

        {code}
        [SSLZoneSettings]
        # Enable/disable the SSL zones functionality.
        SSLZones=enabled
        # Content subtrees we must use SSL for.
        # (currently, only content/view and content/edit respect this setting)
        #
        # Examples:
        # SSLSubtrees[]=/news
        # SSLSubtrees[]=/polls
        SSLSubtrees[]=/news
        {code}

          2. Clear the caches

        {code}
        $ php bin/php/ezcache.php --clear-all --purge
        {code}

          3. Access you site frontend

            1. Click on "News" folder
            2. Verify that you're still in http mode
            3. Click on "Sports" folder
            4. Verify that you've changed to https mode

        If you change your sslsubstrees in site.ini after they've been defined, they are simply ignored.

        h4. Steps to reproduce

        h5. Setup

        # Open terminal window
        # Add the following to you site.ini.append.php
        {code}
        [SSLZoneSettings]
        # Enable/disable the SSL zones functionality.
        SSLZones=enabled
        # Content subtrees we must use SSL for.
        # (currently, only content/view and content/edit respect this setting)
        #
        # Examples:
        # SSLSubtrees[]=/news
        # SSLSubtrees[]=/polls
        SSLSubtrees[]=/sports
        {code}

        # Clear the caches

        {code}
        $ php bin/php/ezcache.php --clear-all --purge
        {code}

        4. Add two folder

          1. Login into admin interface, using admin account
          2. Click on "Content structure" from the top menu
          3. Click on "Create new" button
          4. Choose "Folder" from the drop down list
          5. In the "Name (required):" fill in "News"
          6. Click on "Send for publishing" button
          3. Click on "Create new" button
          4. Choose "Folder" from the drop down list
          5. In the "Name (required):" fill in "Sports"
          6. Click on "Send for publishing" button

        5. Access you site frontend

          1. Click on "News" folder
          2. Verify that you're still in http mode
          3. Click on "Sports" folder
          4. Verify that you've changed to https mode

        6. Change SSLSubtrees

          1. Change the SSLSubress in site.ini.append.php to News

        {code}
        [SSLZoneSettings]
        # Enable/disable the SSL zones functionality.
        SSLZones=enabled
        # Content subtrees we must use SSL for.
        # (currently, only content/view and content/edit respect this setting)
        #
        # Examples:
        # SSLSubtrees[]=/news
        # SSLSubtrees[]=/polls
        SSLSubtrees[]=/news
        {code}

          2. Clear the caches

        {code}
        $ php bin/php/ezcache.php --clear-all --purge
        {code}

          3. Access you site frontend

            1. Click on "News" folder
            2. Verify that you're still in http mode
            3. Click on "Sports" folder
            4. Verify that you've changed to https mode

        Bertrand Dunogier made changes -
        Description If you change your sslsubstrees in site.ini after they've been defined, they are simply ignored.

        h4. Steps to reproduce

        h5. Setup

        # Open terminal window
        # Add the following to you site.ini.append.php
        {code}
        [SSLZoneSettings]
        # Enable/disable the SSL zones functionality.
        SSLZones=enabled
        # Content subtrees we must use SSL for.
        # (currently, only content/view and content/edit respect this setting)
        #
        # Examples:
        # SSLSubtrees[]=/news
        # SSLSubtrees[]=/polls
        SSLSubtrees[]=/sports
        {code}

        # Clear the caches

        {code}
        $ php bin/php/ezcache.php --clear-all --purge
        {code}

        4. Add two folder

          1. Login into admin interface, using admin account
          2. Click on "Content structure" from the top menu
          3. Click on "Create new" button
          4. Choose "Folder" from the drop down list
          5. In the "Name (required):" fill in "News"
          6. Click on "Send for publishing" button
          3. Click on "Create new" button
          4. Choose "Folder" from the drop down list
          5. In the "Name (required):" fill in "Sports"
          6. Click on "Send for publishing" button

        5. Access you site frontend

          1. Click on "News" folder
          2. Verify that you're still in http mode
          3. Click on "Sports" folder
          4. Verify that you've changed to https mode

        6. Change SSLSubtrees

          1. Change the SSLSubress in site.ini.append.php to News

        {code}
        [SSLZoneSettings]
        # Enable/disable the SSL zones functionality.
        SSLZones=enabled
        # Content subtrees we must use SSL for.
        # (currently, only content/view and content/edit respect this setting)
        #
        # Examples:
        # SSLSubtrees[]=/news
        # SSLSubtrees[]=/polls
        SSLSubtrees[]=/news
        {code}

          2. Clear the caches

        {code}
        $ php bin/php/ezcache.php --clear-all --purge
        {code}

          3. Access you site frontend

            1. Click on "News" folder
            2. Verify that you're still in http mode
            3. Click on "Sports" folder
            4. Verify that you've changed to https mode

        If you change your sslsubstrees in site.ini after they've been defined, they are simply ignored.

        h4. Steps to reproduce

        h5. Setup

        # Open terminal window
        # Add the following to you site.ini.append.php
        {code}
        [SSLZoneSettings]
        # Enable/disable the SSL zones functionality.
        SSLZones=enabled
        # Content subtrees we must use SSL for.
        # (currently, only content/view and content/edit respect this setting)
        #
        # Examples:
        # SSLSubtrees[]=/news
        # SSLSubtrees[]=/polls
        SSLSubtrees[]=/sports
        {code}
        # Clear the caches
        {code}
        $ php bin/php/ezcache.php --clear-all --purge
        {code}
        # Add two folder
        ## Login into admin interface, using admin account
        ## Click on "Content structure" from the top menu
        ## Click on "Create new" button
        ## Choose "Folder" from the drop down list
        ## In the "Name (required):" fill in "News"
        ## Click on "Send for publishing" button
        ## Click on "Create new" button
        ## Choose "Folder" from the drop down list
        ## In the "Name (required):" fill in "Sports"
        ## Click on "Send for publishing" button
        # Access you site frontend
        ## Click on "News" folder
        ## Verify that you're still in http mode
        ## Click on "Sports" folder
        ## Verify that you've changed to https mode
        # Change SSLSubtrees
        ## Change the SSLSubress in site.ini.append.php to News
        {code}
        [SSLZoneSettings]
        # Enable/disable the SSL zones functionality.
        SSLZones=enabled
        # Content subtrees we must use SSL for.
        # (currently, only content/view and content/edit respect this setting)
        #
        # Examples:
        # SSLSubtrees[]=/news
        # SSLSubtrees[]=/polls
        SSLSubtrees[]=/news
        {code}
        ## Clear the caches
        {code}
        $ php bin/php/ezcache.php --clear-all --purge
        {code}
        ## Access you site frontend
        ### Click on "News" folder
        ### Verify that you're still in http mode
        ### Click on "Sports" folder
        ### Verify that you've changed to https mode
        Hide
        Bertrand Dunogier added a comment - - edited

        Pull request that fixes the issue: https://github.com/ezsystems/ezpublish-legacy/pull/557.

        Show
        Bertrand Dunogier added a comment - - edited Pull request that fixes the issue: https://github.com/ezsystems/ezpublish-legacy/pull/557 .
        Bertrand Dunogier logged work - 12/Feb/13 6:07 PM
        • Time Spent:
          4 hours
           
          <No comment>
        Bertrand Dunogier made changes -
        Status InputQ [ 10001 ] Development [ 3 ]
        Bertrand Dunogier made changes -
        Remaining Estimate 0 minutes [ 0 ]
        Time Spent 4 hours [ 14400 ]
        Worklog Id 29035 [ 29035 ]
        Bertrand Dunogier made changes -
        Status Development [ 3 ] Devlopment done [ 5 ]
        Bertrand Dunogier made changes -
        Comment [ A comment with security level 'Employees' was removed. ]
        Hide
        Bertrand Dunogier added a comment - - edited

        Status update: it seems that the SSL Zone cache file is used even when the feature isn't enabled anymore. This needs to be fixed.
        False alarm. The pull request has been merged into master (5.1): https://github.com/ezsystems/ezpublish-legacy/commit/e579fdb9ed0ec25f7588796b0555b4d659585855.

        Show
        Bertrand Dunogier added a comment - - edited Status update: it seems that the SSL Zone cache file is used even when the feature isn't enabled anymore. This needs to be fixed. False alarm. The pull request has been merged into master (5.1): https://github.com/ezsystems/ezpublish-legacy/commit/e579fdb9ed0ec25f7588796b0555b4d659585855 .
        Bertrand Dunogier made changes -
        Status Devlopment done [ 5 ] Development Acceptance Done [ 10030 ]
        Ricardo Correia (Inactive) logged work - 19/Feb/13 8:59 AM
        Ricardo Correia (Inactive) made changes -
        Labels Documentation
        Ricardo Correia (Inactive) made changes -
        Labels Documentation
        Ricardo Correia (Inactive) made changes -
        Component/s Documentation [ 10793 ]
        Ricardo Correia (Inactive) made changes -
        Time Spent 4 hours [ 14400 ] 1 day, 1 hour [ 32400 ]
        Worklog Id 29451 [ 29451 ]
        Ricardo Correia (Inactive) logged work - 20/Feb/13 10:03 AM
        Ricardo Correia (Inactive) made changes -
        Status Development Acceptance Done [ 10030 ] Documentation [ 10010 ]
        Assignee Bertrand Dunogier [ bertrand.dunogier@ez.no ] Ricardo Correia [ ricardo.correia@ez.no ]
        Show
        Ricardo Correia (Inactive) added a comment - The following document has been updated: http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Scripts/Generic/ezcache.php
        Ricardo Correia (Inactive) made changes -
        Time Spent 1 day, 1 hour [ 32400 ] 1 day, 1 hour, 6 seconds [ 32406 ]
        Worklog Id 29475 [ 29475 ]
        Ricardo Correia (Inactive) made changes -
        Status Documentation [ 10010 ] Documentation done [ 10011 ]
        Pedro Resende (Inactive) made changes -
        Status Documentation done [ 10011 ] QA [ 10008 ]
        Assignee Ricardo Correia [ ricardo.correia@ez.no ] Pedro Resende [ pedro.resende@ez.no ]
        Hide
        Pedro Resende (Inactive) added a comment -

        Don't forget to apply the patch from story https://jira.ez.no/browse/EZPNEXT-772

        Show
        Pedro Resende (Inactive) added a comment - Don't forget to apply the patch from story https://jira.ez.no/browse/EZPNEXT-772
        Pedro Resende (Inactive) made changes -
        Rank Ranked lower
        Pedro Resende (Inactive) made changes -
        Rank Ranked lower
        Pedro Resende (Inactive) logged work - 20/Feb/13 6:00 PM - edited
        • Time Spent:
          3 hours, 30 minutes
           

          Analyse and reproduce issue

        Pedro Resende (Inactive) made changes -
        Time Spent 1 day, 1 hour, 6 seconds [ 32406 ] 1 day, 4 hours, 30 minutes [ 45006 ]
        Worklog Id 29517 [ 29517 ]
        Pedro Resende (Inactive) made changes -
        Worklog Id 29517 [ 29517 ]
        Vidar Langseid made changes -
        Assignee Pedro Resende [ pedro.resende@ez.no ] Gunnstein Lye [ gunnstein.lye@ez.no ]
        Pedro Resende (Inactive) made changes -
        Assignee Gunnstein Lye [ gunnstein.lye@ez.no ] Pedro Resende [ pedro.resende@ez.no ]
        Pedro Resende (Inactive) made changes -
        Status QA [ 10008 ] QA done [ 10007 ]
        Pedro Resende (Inactive) made changes -
        Time Spent 1 day, 4 hours, 30 minutes [ 45006 ] 1 day, 6 hours, 30 minutes [ 52206 ]
        Worklog Id 30038 [ 30038 ]
        Pedro Resende (Inactive) made changes -
        Worklog Id 30038 [ 30038 ]
        Pedro Resende (Inactive) logged work - 04/Mar/13 6:06 PM - edited
        • Time Spent:
          2 hours
           

          Re-test

        André Rømcke made changes -
        Assignee Pedro Resende [ pedro.resende@ez.no ]
        Status QA done [ 10007 ] Closed [ 6 ]
        Fix Version/s 5.1 [ 11280 ]
        Resolution Fixed [ 1 ]
        Hide
        Bertrand Dunogier added a comment -

        Reopening to edit a comment.

        Show
        Bertrand Dunogier added a comment - Reopening to edit a comment.
        Bertrand Dunogier made changes -
        Resolution Fixed [ 1 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        Bertrand Dunogier made changes -
        Status Reopened [ 4 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        André Rømcke made changes -
        Workflow eZ Engineering Scrumban Workflow [ 35754 ] EZ* Development Workflow [ 73197 ]
        Alex Schuster made changes -
        Workflow EZ* Development Workflow [ 73197 ] EZEE Development Workflow [ 111759 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Backlog Backlog
        62d 21h 7m 1 joaquim.cavalleri@ez.no 26/Oct/12 11:29 AM
        Backlog Backlog InputQ InputQ
        104d 23h 47m 1 Gunnstein Lye 08/Feb/13 10:16 AM
        InputQ InputQ Development Development
        4d 7h 50m 1 Bertrand Dunogier 12/Feb/13 6:07 PM
        Development Development Development Done Development Done
        10s 1 Bertrand Dunogier 12/Feb/13 6:07 PM
        Development Done Development Done Removed Status Removed Status
        1d 23h 19m 1 Bertrand Dunogier 14/Feb/13 5:26 PM
        Removed Status Removed Status Documentation Documentation
        5d 16h 36m 1 ricardo.correia@ez.no 20/Feb/13 10:03 AM
        Documentation Documentation Documentation Review done Documentation Review done
        49s 1 ricardo.correia@ez.no 20/Feb/13 10:03 AM
        Documentation Review done Documentation Review done QA QA
        3h 31m 1 pedro.resende@ez.no 20/Feb/13 1:35 PM
        QA QA QA Done QA Done
        11d 22h 45m 1 pedro.resende@ez.no 04/Mar/13 12:21 PM
        QA Done QA Done Closed Closed
        21h 49m 1 André Rømcke 05/Mar/13 10:10 AM
        Closed Closed Reopened Reopened
        1h 30m 1 Bertrand Dunogier 05/Mar/13 11:41 AM
        Reopened Reopened Closed Closed
        23s 1 Bertrand Dunogier 05/Mar/13 11:41 AM

          People

          • Assignee:
            Unassigned
            Reporter:
            Pedro Resende
          • Votes:
            0 Vote for this issue
            Watchers:
            7 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 day, 6 hours, 30 minutes
              1d 6h 30m