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

Unable to access Platform UI with app.php in the URL

    Details

      Description

      When accessing the backoffice using URL with "app.php" (for example http://ezplatform.dev/app.php/ez) it is not possible to log in. The user is immediately redirected to login page and there is an error showing in the console: "_ezcombo?app-base/app-base-min.js&querystring-stringify-simple/querystring-stringify-simple-min.js&…:1687 POST http://ezplatform.dev/app.php/app.php/api/ezp/v2/user/sessions/r04atonm3r2i8n7l630r8o66ik/refresh 404 (Not Found)". Also, when you click the "Login" button, the login page displays an error "An unexpected error occurred" and there is an error in the console: "_ezcombo?app-base/app-base-min.js&querystring-stringify-simple/querystring-stringify-simple-min.js&…:1687 POST http://ezplatform.dev/app.php/app.php/api/ezp/v2/user/sessions 404 (Not Found)".
      The URLs of these requests have the "app.php" two times, which means it is duplicated. Removing the duplication should resolve the bug.

      Steps to reproduce

      1. Create fresh eZ Platform installation under a domain, for example http://ezplatform.dev.
      2. Try to access backoffice through this URL: http://ezplatform.dev/app.php/ez.
      3. Confirm that it caused 404 error in the console and redirection to the login page.
      4. Click "Login" button.
      5. Confirm that it caused another 404 error in the console and "An unexpected error occurred" is displayed.

        Activity

        Hide
        Jacek Foremski (Inactive) added a comment - - edited

        PR: https://github.com/ezsystems/ez-js-rest-client/pull/85 - merged and immediately reverted since it pulls in additional 100kb javascript (42kb minimized).
        An option would be to rewrite parts of the URI.js library and integrate them on their own.

        Show
        Jacek Foremski (Inactive) added a comment - - edited PR: https://github.com/ezsystems/ez-js-rest-client/pull/85 - merged and immediately reverted since it pulls in additional 100kb javascript (42kb minimized). An option would be to rewrite parts of the URI.js library and integrate them on their own.

          People

          • Assignee:
            Unassigned
            Reporter:
            Jacek Foremski (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: