Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-46848

Username with backslash causes 404 at /user/username

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Duplicate
    • Component/s: core
    • Labels:
    • Environment:
      Jenkins: 2.78
      OS: Windows Server 2016 Datacenter 1607
      Plugins: None
      Browser: Chrome 60
    • Similar Issues:

      Description

      If a create a user with a backslash in the name, for example 'thisisau\sername', clicking the name in the top-right of the header takes me to a 404 page, trying to get to https://server:8080/user/thisisau/sername/.

      If I replace the '/' in the URL username with '%5C' (encoded backslash) it successfully loads the user page.

        Attachments

        1. screenshot-2.png
          screenshot-2.png
          170 kB
        2. screenshot-1.png
          screenshot-1.png
          438 kB
        3. jenkins-bug-2.png
          jenkins-bug-2.png
          24 kB
        4. jenkins-bug-1.png
          jenkins-bug-1.png
          8 kB

          Issue Links

            Activity

            Hide
            danielbeck Daniel Beck added a comment -

            On OS X both forward slash and back slash work in user IDs, so this is probably specific to Windows.

            James Nord Are you able to reproduce this issue?

            Show
            danielbeck Daniel Beck added a comment - On OS X both forward slash and back slash work in user IDs, so this is probably specific to Windows. James Nord Are you able to reproduce this issue?
            Hide
            jamesevickery James Vickery added a comment -

            Sorry, got the version number wrong - I've just updated it. The Jenkins installer was downloaded earlier today so I assume it's the latest stable version. Thanks

            Show
            jamesevickery James Vickery added a comment - Sorry, got the version number wrong - I've just updated it. The Jenkins installer was downloaded earlier today so I assume it's the latest stable version. Thanks
            Hide
            teilo James Nord added a comment -

            I'm sure this is a dupe of something... or something changed (the original bug and got replaced by this)

            Show
            teilo James Nord added a comment - I'm sure this is a dupe of something... or something changed (the original bug and got replaced by this)
            Hide
            jamesevickery James Vickery added a comment -

            James Nord I haven't raised this before, I only made an account to raise this issue. I briefly checked for duplicates but couldn't find anything similar

            Show
            jamesevickery James Vickery added a comment - James Nord I haven't raised this before, I only made an account to raise this issue. I briefly checked for duplicates but couldn't find anything similar
            Hide
            teilo James Nord added a comment - - edited

            Daniel Beck reproduced on 2.73.3 (java -jar jenkins.war --httpListenAddress=127.0.0.1)


            Show
            teilo James Nord added a comment - - edited Daniel Beck reproduced on 2.73.3 (java -jar jenkins.war --httpListenAddress=127.0.0.1)
            Hide
            teilo James Nord added a comment -

            The dupe is JENKINS-33304 - but that has now been closed and so was probably an incomplete fix.

            Show
            teilo James Nord added a comment - The dupe is JENKINS-33304 - but that has now been closed and so was probably an incomplete fix.
            Hide
            teilo James Nord added a comment -

            OK so likely a dupe of JENKINS-32623 which daniel has fixed and should be in the next LTS.

            Show
            teilo James Nord added a comment - OK so likely a dupe of JENKINS-32623 which daniel has fixed and should be in the next LTS.
            Hide
            teilo James Nord added a comment -

            verified this is indeed fixed using jenkins 2.92

            Show
            teilo James Nord added a comment - verified this is indeed fixed using jenkins 2.92

              People

              • Assignee:
                Unassigned
                Reporter:
                jamesevickery James Vickery
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: