Skip to content

[JENKINS-70139] booleanRadio uses non-unique ID (regression in 2.335) #18388

Closed

Description

@jenkins-infra-bot

The implementation of our boolean radio button (see https://github.com/jenkinsci/jenkins/blob/master/core/src/main/resources/lib/form/booleanRadio.jelly) does use a generated ID. When you have a repeatable describable (e.g. quality gates in the warnings plugin, or code coverage plugin) then this ID will be duplicated for all instances, i.e. the button will be toggled automatically for all instances rather than for the selected one only. We need to provide a way to make this ID unique.


Originally reported by drulli, imported from: booleanRadio uses non-unique ID (regression in 2.335)
  • assignee: benebsiny
  • status: Closed
  • priority: Critical
  • component(s): core
  • label(s): UX, function, regression, ux
  • resolution: Fixed
  • resolved: 2023-03-03T10:06:04+00:00
  • votes: 1
  • watchers: 5
  • imported: 2025-11-24
Raw content of original issue

The implementation of our boolean radio button (see https://github.com/jenkinsci/jenkins/blob/master/core/src/main/resources/lib/form/booleanRadio.jelly) does use a generated ID. When you have a repeatable describable (e.g. quality gates in the warnings plugin, or code coverage plugin) then this ID will be duplicated for all instances, i.e. the button will be toggled automatically for all instances rather than for the selected one only. We need to provide a way to make this ID unique.

5 attachments

Activity

  1. jenkins-infra-bot commented on Nov 23, 2022

    @jenkins-infra-bot
    Author
  2. jenkins-infra-bot commented on Nov 30, 2022

    @jenkins-infra-bot
    Author
    drulli:
    • Original comment link
    • Raw content of original comment:

      After looking into it a little bit deeper it appears, that the actual problem is the duplicate id that is generated by the booleanRadio. This affects the correct rendering and animation of the radio buttons. The name seems to be unique though. What I do not understand is, how this ID is composed for repeatable. It seems that the value is cached.

    After looking into it a little bit deeper it appears, that the actual problem is the duplicate id that is generated by the booleanRadio. This affects the correct rendering and animation of the radio buttons. The name seems to be unique though. What I do not understand is, how this ID is composed for repeatable. It seems that the value is cached.

  3. jenkins-infra-bot commented on Feb 28, 2023

    @jenkins-infra-bot
    Author
    tbeukhof:
    • Original comment link
    • Raw content of original comment:

      This actually causes issues with our builds that have repeatable sections that have radio button options, like the following:

      The second 'Specific credentials' radio button should have been retained as being selected in this screenshot, but it was not, so if you go to save the job customization it doesn't register as being selected, even though if you now manually click on that radio button it will show the underlying data.

      This happened for another job that had multiple Invoke Gradle Script steps in a row where it didn't keep the radio button selection for 'Use Gradle Wrapper' on both steps, causing a vague File Not Found error for gradle.

      Rolling back to 2.390 fixed the issue.

    This actually causes issues with our builds that have repeatable sections that have radio button options, like the following:

    The second 'Specific credentials' radio button should have been retained as being selected in this screenshot, but it was not, so if you go to save the job customization it doesn't register as being selected, even though if you now manually click on that radio button it will show the underlying data.

    This happened for another job that had multiple Invoke Gradle Script steps in a row where it didn't keep the radio button selection for 'Use Gradle Wrapper' on both steps, causing a vague File Not Found error for gradle.

    Rolling back to 2.390 fixed the issue.

  4. jenkins-infra-bot commented on Mar 2, 2023

    @jenkins-infra-bot
    Author
    sushanto:
    • Original comment link
    • Raw content of original comment:

      This issue is present in Jenkins 

      Jenkins 2.392

      This is a blocker for me as there are many jobs that have radio button in them and selecting one radio button is unselecting the other radio button of a different section

      I have attached the video for the same, this issue was not there before,

       

      Kindly please resolve this asap

       

       

    This issue is present in Jenkins 

    Jenkins 2.392

    This is a blocker for me as there are many jobs that have radio button in them and selecting one radio button is unselecting the other radio button of a different section

    I have attached the video for the same, this issue was not there before,

     

    Kindly please resolve this asap

     

     

  5. jenkins-infra-bot commented on Mar 2, 2023

    @jenkins-infra-bot
    Author
    drulli:
    • Original comment link
    • Raw content of original comment:

      sushanto Can you please add the concrete steps to reproduce so that we can add a UI test case that reflects your use case.

    sushanto Can you please add the concrete steps to reproduce so that we can add a UI test case that reflects your use case.

  6. jenkins-infra-bot commented on Mar 3, 2023

    @jenkins-infra-bot
    Author
    sushanto:

    In any freestyle job, just add create/edit text file section (plugin to be installed) - plugin url - https://plugins.jenkins.io/text-file-operations/

    add min two section, and try to select the overwrite file option in both the section

    drulli  FYI

  7. jenkins-infra-bot commented on Mar 3, 2023

    @jenkins-infra-bot
    Author
    drulli:

    sushanto the plugin you are referring to does not use the booleanRadio, it uses a radio button without an ID, maybe this is the problem. I think this plugin needs to be updated:

    https://github.com/jenkinsci/text-file-operations-plugin/blob/master/src/main/resources/com/etas/jenkins/plugins/CreateTextFile/CreateFileBuilder/config.jelly#L14

    Can you please file a new issue in Jira and link JENKINS-70139 as cause?

  8. jenkins-infra-bot commented on Mar 3, 2023

    @jenkins-infra-bot
    Author
    drulli:
    • Original comment link
    • Raw content of original comment:

      tbeukhof Can you confirm this as well for your plugin configurations?

    tbeukhof Can you confirm this as well for your plugin configurations?

  9. jenkins-infra-bot commented on Mar 6, 2023

    @jenkins-infra-bot
    Author
    tbeukhof:

    I am not totally sure, but I think these are the corresponding pieces of code in other plugins where I was running into issues with the latest Jenkins with the radio buttons:

    Credentials Binding Multi Username Password selection

    https://github.com/jenkinsci/credentials-binding-plugin/blob/master/src/main/resources/org/jenkinsci/plugins/credentialsbinding/impl/BindingStep/config.jelly#L34

    Gradle plugin step Gradle executable selection

    https://github.com/jenkinsci/gradle-plugin/blob/master/src/main/resources/hudson/plugins/gradle/Gradle/config.jelly#L5

  10. jenkins-infra-bot commented on Mar 6, 2023

    @jenkins-infra-bot
    Author
    drulli:

    Ok, the gradle plugin uses a radioBlock, this one also does not use an ID. It seems that the fix in #7631 needs to be improved.

    Can you please file a new issue about that problem, as the new problem is about all other radio buttons?

  11. jenkins-infra-bot commented on Mar 6, 2023

    @jenkins-infra-bot
    Author
    tbeukhof:

    Thank you for the guidance, Ulli. I created JENKINS-70739.

  12. jenkins-infra-bot commented on Apr 8, 2023

    @jenkins-infra-bot
    Author
    markewaite:
    • Original comment link
    • Raw content of original comment:

      I confirmed that the fix from Jesse Glick resolves both the credentials binding issue and the text file operations issue (as noted by sushanto)

    I confirmed that the fix from Jesse Glick resolves both the credentials binding issue and the text file operations issue (as noted by sushanto)

  13. jenkins-infra-bot commented on Apr 9, 2023

    @jenkins-infra-bot
    Author
    drulli:
    • Original comment link
    • Raw content of original comment:

      The fix also resolves the issue in the warnings plugin!

    The fix also resolves the issue in the warnings plugin!

  14. jenkins-infra-bot commented on Nov 24, 2025

    @jenkins-infra-bot
    Author

    [Original relates_to from Jira: JENKINS-70739]

  15. jenkins-infra-bot commented on Nov 24, 2025

    @jenkins-infra-bot
    Author

    [Original relates_to from Jira: JENKINS-70988]

  16. jenkins-infra-bot commented on Nov 24, 2025

    @jenkins-infra-bot
    Author

    [Original relates_to from Jira: JENKINS-70989]

  17. removed
    bugFor changelog: Minor bug. Will be listed after features
    on Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions