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

API username gets set to lower-case after Jenkins restarts or force-reload

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core
    • None
    • Jenkins 1.590
      Ubuntu 12.04 I think, as a virtual machine
      Java Runtime 1.6.0_33-b33
      OpenJDK 1.6

      After a restart of Jenkins, API usernames that had an uppercase character are converted to lowercase. The security profile can't find permissions for this new user and blocks the connection. Before the restart, it worked OK.

      I'm using the built-in Jenkins database for storing users.

      Expected behavior:

      • Either convert the username on user-creation time immediately to a lower-case version for API usage and make sure it never changes (or)
      • Do not convert when restarting

      How to reproduce:

      • Create a user with a capital in the name
      • Verify that the user's API username has a capital
      • (optional: create a security entry for this user using the username with the capital)
      • Restart Jenkins
      • Verify that the user's API username is now lowercase
      • (optional: verify that logging in via API doesn't work work anymore)
      • (optional: verify rhat after adding the lowercase-version of the API username to the security screen, everything works OK again)

      Addendum:
      Interestingly, the username used by the external tool doesn't have to be changed to the lower-case version (OpenStack's Jenkins Job Builder in my case). I'm not sure if this is because of behavior of the tool, or the behavior of the logging-in part in Jenkins.

            Unassigned Unassigned
            frvge Frank van Gemeren
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: