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

Username with backslash causes 404 at /user/username

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • core
    • Jenkins: 2.78
      OS: Windows Server 2016 Datacenter 1607
      Plugins: None
      Browser: Chrome 60

      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.

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

          [JENKINS-46848] Username with backslash causes 404 at /user/username

          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.

          teilo Are you able to reproduce this issue?

          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. teilo Are you able to reproduce this issue?

          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

          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

          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)

          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)

          James Vickery added a comment -

          teilo 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

          James Vickery added a comment - teilo 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

          James Nord added a comment - - edited

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


          James Nord added a comment - - edited danielbeck reproduced on 2.73.3 (java -jar jenkins.war --httpListenAddress=127.0.0.1)

          James Nord added a comment -

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

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

          James Nord added a comment -

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

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

          James Nord added a comment -

          verified this is indeed fixed using jenkins 2.92

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

            Unassigned Unassigned
            jamesevickery James Vickery
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: