jenkinsci / jenkinsci/credentials-plugin

[JENKINS-62819] CredentialsPlugin + long certificatename = missaligned job configuration UI

Open
#869 0 comments 0 reactions 0 assignees View on GitHub
component:credentials-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
134
Forks
258
Avg merge
48m
Merged PRs (30d)
1

Description

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

---
Originally reported by ac_2124, imported from: CredentialsPlugin + long certificatename = missaligned job configuration UI


  • status: Open
  • priority: Major
  • component(s): credentials-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 2025-12-08

Raw content of original issue

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

environment

```
64 bit Windows

Java JRE 8u251 64 bit

Jenkins v2.235.1

Credentials Plugin 2.3.10

- Oracle Java SE Development Kit Installer Plugin 1.4

- Structs Plugin 1.20

- Trilead API Plugin 1.0.8

Jenkins running directly

NoReverseProxy

Jenkins installed using latest Windows installer and no plugins choosen at installation dialog

Firefox 77.0.1 (64 bit)

```

2 attachments

- [2020-06-25_Jenkins-UI-Bug.png](https://issues.jenkins.io/secure/attachment/51757/2020-06-25_Jenkins-UI-Bug.png)
> ![2020-06-25_Jenkins-UI-Bug.png](https://issues.jenkins.io/secure/attachment/51757/2020-06-25_Jenkins-UI-Bug.png)
- [test.p12](https://issues.jenkins.io/secure/attachment/51756/test.p12)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.