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.


          Blocking as user profile changes are not persistent.

          timmytonyboots added a comment - Blocking as user profile changes are not persistent.

          Code changed in hudson
          User: : mindless
          Path:
          trunk/hudson/main/core/src/main/java/hudson/model/User.java
          trunk/www/changelog.html
          http://jenkins-ci.org/commit/28511
          Log:
          [FIXED JENKINS-5833] replace > with _ in username, as already done for <

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : mindless Path: trunk/hudson/main/core/src/main/java/hudson/model/User.java trunk/www/changelog.html http://jenkins-ci.org/commit/28511 Log: [FIXED JENKINS-5833] replace > with _ in username, as already done for <

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

              Created:
              Updated:
              Resolved: