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

CredentialsPlugin + long certificatename = missaligned job configuration UI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • credentials-plugin
    • None

      Hello,

       

      I have a Jenkins UI issue where Jenkins UI in job configuration breaks righthand out of its surrounding bounds. (Maybe this issue is related to Jenkins-35269, but the focus there is on textboxes, not on dropdowns of credentials plugin, so I am not sure if both has the same root cause.)

      Here is the description of how I am able to reproduce in a pristine Jenkins installation:

      I have a clean new Jenkinsinstallation without any plugins installed while install wizard. Once setup completed I've installed only CredentialsPlugin including its dependencies. The dependend plugins installed are mentioned in environment.

      Next I've created a FreestyleProject-JenkinsJob named "TestJob". In the configuration section of this job I've enabled "This build is parameterized"-option and add "Credentials Parameter"-option without any value. The UI still looks normal.

      Now go to the credentials section (by leaving the jobconfig with or without saving or by clicking directly on the add button in the "Credentials Parameter" section in job config).

      Create a valid certificate credential and make sure the certificate values like CN, O, OU, L, ST, C have values of usual length. I've created a certificate .p12-file for testing purpose using "keystore explorer" (PFA .p12-file).

      Once the certificate is selected and I go back to the job config having "This build is parameterized"-option activated and the "credentials parameter"-option added without any value, the UI breaks righthand out of the surrounding bounds.

      I think the issue here is caused by the long name of the certificate, which is amongst other things composed of CN, O, OU, L ST, C-fields of the certificate. This causes the "default value"-dropdown of "credentials parameter"-option to be as wide as the certificates name as a minimum width, even before it is selected (PFA screenshot).

       

      The issue is also reproducible using other plugins. For example using the subversion plugin in job configuration causing the same issue, but I think just because it also relies/depends on credentials plugin.

       

      Best regards,
      Milan Binder

            Unassigned Unassigned
            ac_2124 Milan Binder
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: