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

        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
        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 .
        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 .
        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
        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
        Hide
        Bertrand Dunogier added a comment -

        Reopening to edit a comment.

        Show
        Bertrand Dunogier added a comment - Reopening to edit a comment.

          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