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

Folder on root with same name as a siteaccess makes a redirect

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: High High
    • Resolution: Fixed
    • Affects Version/s: 5.1.0beta1
    • Component/s: Documentation
    • Labels:
    • Environment:

      Server OS: Red Hat 6.4
      PHP: 5.3.3
      Database: MySQL 5.1.61
      Browser: Firefox 18.0.1

      Description

      If you have defined in ezpublish.yml:

      ezpublish:
          siteaccess:
              list:
                  - admin
                  - bug_test
      (...)
      

      Steps to reproduce:

      1 - add "bug_test" to ezpublish.yml
      2 - make a login to any interface with an editor or administrator
      3 - create a folder (on root) named "bug_test"
      4 - click on the newly created folder
      5 - verify the exception "TwigBundle:Exception:error500.html.twig"
      

      This also happens if you have a real site access, it will redirect to that site access:
      ex:

      (considering that the ezwebin_site as default site)
      1 - login into ezwebin as "admin" (http://<your site>/)
      2 - create a new folder named "ezwebin_site"
      3 - click on the newly created folder "ezwebin_site"
      4 - verify that you get redirected to http://<your site>/ezwebin_site
      (that is in fact where we were before)
      5 - click again no the newly created folder "ezwebin_site"
      6 - verify that it opened the folder
      7 - verify that url looks something like http://<your site>/ezwebin_site/ezwebin_site
      

        Issue Links

          Activity

          Hide
          Jérôme Vieilledent (Inactive) added a comment - - edited

          The first case you describe with the bug_test siteaccess is perfectly normal and the same behavior can be observed in a full legacy stack :

          An unexpected error has occurred. Please contact the webmaster.
          Unable to connect to the database server 'localhost' Error #1045: Access denied for user 'root'@'localhost' (using password: NO) in /Users/lolautruche/workspace/ezsystems/ezpublish/lib/ezdb/classes/ezmysqlidb.php on line 135
          

          This is actually a limitation of the URI siteaccess matching. You cannot have a content with the same name as a siteaccess. If you want to do that, you'll need to use another way of matching the siteaccess (like Host).
          This might need a documentation update though (http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Concepts-and-basics/Configuration/Access-methods)

          The second case is exactly the same as above, but with a real siteaccess...

          Show
          Jérôme Vieilledent (Inactive) added a comment - - edited The first case you describe with the bug_test siteaccess is perfectly normal and the same behavior can be observed in a full legacy stack : An unexpected error has occurred. Please contact the webmaster. Unable to connect to the database server 'localhost' Error #1045: Access denied for user 'root'@'localhost' (using password: NO) in /Users/lolautruche/workspace/ezsystems/ezpublish/lib/ezdb/classes/ezmysqlidb.php on line 135 This is actually a limitation of the URI siteaccess matching. You cannot have a content with the same name as a siteaccess. If you want to do that, you'll need to use another way of matching the siteaccess (like Host). This might need a documentation update though ( http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Concepts-and-basics/Configuration/Access-methods ) The second case is exactly the same as above, but with a real siteaccess...
          Hide
          Ricardo Correia (Inactive) added a comment -

          The following document has been updated in order to include details about this known limitation:
          http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Concepts-and-basics/Configuration/Access-methods

          Show
          Ricardo Correia (Inactive) added a comment - The following document has been updated in order to include details about this known limitation: http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Concepts-and-basics/Configuration/Access-methods
          Hide
          Marcos Loureiro (Inactive) added a comment -

          This also happens on eZ Publish 5 (not only on 4.x)

          Show
          Marcos Loureiro (Inactive) added a comment - This also happens on eZ Publish 5 (not only on 4.x)
          Show
          Ricardo Correia (Inactive) added a comment - The following documents have been updated: https://confluence.ez.no/display/EZP/Known+issues+in+5.0 http://doc.ez.no/eZ-Publish/Technical-manual/5.x/Concepts-and-basics/Configuration/Access-methods http://doc.ez.no/eZ-Publish/Technical-manual/4.7/Concepts-and-basics/Configuration/Access-methods http://doc.ez.no/eZ-Publish/Technical-manual/4.6/Concepts-and-basics/Configuration/Access-methods http://doc.ez.no/eZ-Publish/Technical-manual/4.5/Concepts-and-basics/Configuration/Access-methods http://doc.ez.no/eZ-Publish/Technical-manual/4.4/Concepts-and-basics/Configuration/Access-methods http://doc.ez.no/eZ-Publish/Technical-manual/4.3/Concepts-and-basics/Configuration/Access-methods
          Hide
          Marcos Loureiro (Inactive) added a comment -

          QA Approved

          Show
          Marcos Loureiro (Inactive) added a comment - QA Approved

            People

            • Assignee:
              Unassigned
              Reporter:
              Marcos Loureiro (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 - 7 hours, 45 minutes
                7h 45m