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

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

XMLWordPrintable

    • 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.

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

              Created:
              Updated:
              Resolved: