You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What Operating System are you using (both controller, and any agents involved in the problem)?
Ubuntu 22.04
Reproduction steps
Enable Bearer Authentication
Save changes
Restart Jenkins
Expected Results
I would have expected the Bearer Authentication setting to remain enabled
Actual Results
The Bearer Authentication setting is disabled after restart. It appears the setting is not loaded (correctly) from the configuration file.
When enabling the setting and saving, it is written to the configuration file: it writes <useBearerAuth>true</useBearerAuth>
But restarting Jenkins does not seem to load this setting. Nor does "reload configuration from disk" seem to do anything, the value in the configuration file just seems to be ignored.
Anything else?
It looks like the useBearerAuth setting wasn't added to the JiraSite.Builder class, but I'm not familiar enough with the code, nor do I currently have the time, to be absolutely sure this is the cause of the issue.
The text was updated successfully, but these errors were encountered:
Upon further inspection it seems that actual cause is the JiraSite.readResolve method. The useBearerAuth value is not set in that method. Adding the following to that method will fix this issue:
Jenkins and plugins versions report
Environment
What Operating System are you using (both controller, and any agents involved in the problem)?
Ubuntu 22.04
Reproduction steps
Expected Results
I would have expected the Bearer Authentication setting to remain enabled
Actual Results
The Bearer Authentication setting is disabled after restart. It appears the setting is not loaded (correctly) from the configuration file.
When enabling the setting and saving, it is written to the configuration file: it writes
<useBearerAuth>true</useBearerAuth>
But restarting Jenkins does not seem to load this setting. Nor does "reload configuration from disk" seem to do anything, the value in the configuration file just seems to be ignored.
Anything else?
It looks like the useBearerAuth setting wasn't added to the JiraSite.Builder class, but I'm not familiar enough with the code, nor do I currently have the time, to be absolutely sure this is the cause of the issue.
The text was updated successfully, but these errors were encountered: