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

User name with '>' character cannot save user preferences.

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • core
    • None

    • Hudson 1.348
      Windows - where '>' is illegal in filename.

      When a user name contains a '>' the configuration cannot be saved.

      Example: User Name <username@example.com>

      hudson.util.IOException2: Failed to create a temporary file in C:\dev\hudson\users\User Name _username@example.com>
      at hudson.util.AtomicFileWriter.(AtomicFileWriter.java:67)
      at hudson.util.AtomicFileWriter.(AtomicFileWriter.java:54)
      at hudson.XmlFile.write(XmlFile.java:162)
      at hudson.model.User.save(User.java:407)

      The prefix '<' is replaced with underscore, but not the closing brace.

      Expected:

      Save config to C:\dev\hudson\users\User Name username@example.com

      Looks to be a problem in User.java.
      svn patch from 1.348 tag attached.

          [JENKINS-5833] User name with '>' character cannot save user preferences.

          timmytonyboots created issue -
          timmytonyboots made changes -
          Description Original:
          When a user name contains a '>' the configuration cannot be saved.

          Example: User Name <username@example.com>

          hudson.util.IOException2: Failed to create a temporary file in C:\dev\hudson\users\User Name _username@example.com>
          at hudson.util.AtomicFileWriter.(AtomicFileWriter.java:67)
          at hudson.util.AtomicFileWriter.(AtomicFileWriter.java:54)
          at hudson.XmlFile.write(XmlFile.java:162)
          at hudson.model.User.save(User.java:407)

          The prefix '<' is replaced with underscore, but not the closing brace.

          Expected:

          Save config to C:\dev\hudson\users\User Name _username@example.com_


          Looks to be a problem in User.java.
          svn patch from 1.348 tag attached.
          New: When a user name contains a '>' the configuration cannot be saved.

          Example: User Name <username@example.com>

          hudson.util.IOException2: Failed to create a temporary file in C:\dev\hudson\users\User Name _username@example.com>
          at hudson.util.AtomicFileWriter.(AtomicFileWriter.java:67)
          at hudson.util.AtomicFileWriter.(AtomicFileWriter.java:54)
          at hudson.XmlFile.write(XmlFile.java:162)
          at hudson.model.User.save(User.java:407)

          The prefix '<' is replaced with underscore, but not the closing brace.

          Expected:

          Save config to C:\dev\hudson\users\User Name _username@example.com_


          Looks to be a problem in User.java.
          svn patch from 1.348 tag attached.
          Priority Original: Minor [ 4 ] New: Blocker [ 1 ]
          Alan Harder made changes -
          Assignee New: Alan Harder [ mindless ]
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Andrew Bayer made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 135925 ] New: JNJira + In-Review [ 203750 ]

            mindless Alan Harder
            timmytonyboots timmytonyboots
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: