Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-12690

# in document URLs not encoded during redirect to authentication page

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • 4.9.8, 4.10.0
    • None
    • None
    • None
    • 4.10 M6

      Current Behaviour
      When accessing a URL to a document in workspaces such as:
      https://\{DOMAIN}/projects/{projectName}/fr/documents.html#file-file://XXXXXXXXXXXX

      the # character is not encoded during the redirect to the authentication page. Because of this, some of the context of the url is lost during the redirect process.

       

      Expected Behaviour
      During the redirect to the authentication page, the # character in the URL should be properly encoded.

       

      Steps to Reproduce

      1. Ensure the user is not authenticated and access a document URL similar to:
        https://\{DOMAIN}/projects/{projectName}/fr/documents.html#file-file://XXXXXXXXXXXX or https://demo.ametys.org/projects/projet-d-exemple-prive/fr/documents.html#file-file://86542b48-f7ec-49e6-8b2b-5054cee1a3bd
      2. Observe the redirect to the login/authentication page :
        https://demo.ametys.org/projects/projet-d-exemple-prive/_authenticate?requestedURL=/projects/projet-d-exemple-prive/fr/documents.html{*}#{*}file-file://86542b48-f7ec-49e6-8b2b-5054cee1a3bd

      Bug : The "#" symbol isn't encoded to "%23"

            cedric Cédric Damioli
            jhawken James Hawken
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: