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

Not able to add any roles in 'Folder-based Authorization Strategy' plugin

      Hi Team, 

       

      I am not able to add any of the roles in 'Folder-based Authorization Strategy' plugin. I am having full access so no permission issues. I checked the web console as well and getting below error while adding Roles. Attaching Screenshot of errors for better view and getting it for all global, folder and agent roles respectively.

      addrole.js:16 Uncaught TypeError: document.getElementById(...).getValue is not a function at addGlobalRole (addrole.js:16:74) at HTMLButtonElement.onclick (folder-auth/:55:8180)

        addGlobalRole @ addrole.js:16
        onclick @ folder-auth/:55

       

          [JENKINS-72953] Not able to add any roles in 'Folder-based Authorization Strategy' plugin

          Mark Waite added a comment -

          Thanks for reporting the issue. This is a duplicate of JENKINS-72433 . The folder based authorization plugin includes JavaScript that requires the Prototype.js JavaScript library. The Prototype.js JavaScript library was removed from Jenkins 2.426.

          Instructions to remove Prototype.js from a plugin are available to guide you as you remove Prototype.js from the folder based authorization plugin source code. You can then use the changes that you implemented and can submit a pull request to share those changes with others.

          If the folder based authorization plugin is important to your organization, then you should consider having someone in your organization adopt the plugin. That will allow your organization to assure that the plugin continues to meet your needs. The "Improve a plugin" tutorial provides 5 videos and 14 specific steps to help new plugin maintainers as they adopt a plugin.

          If you're unwilling or unable to contribute to the folder based authorization plugin, then you can consider the workarounds suggested in JENKINS-72433.

          Mark Waite added a comment - Thanks for reporting the issue. This is a duplicate of JENKINS-72433 . The folder based authorization plugin includes JavaScript that requires the Prototype.js JavaScript library. The Prototype.js JavaScript library was removed from Jenkins 2.426 . Instructions to remove Prototype.js from a plugin are available to guide you as you remove Prototype.js from the folder based authorization plugin source code . You can then use the changes that you implemented and can submit a pull request to share those changes with others. If the folder based authorization plugin is important to your organization, then you should consider having someone in your organization adopt the plugin . That will allow your organization to assure that the plugin continues to meet your needs. The "Improve a plugin" tutorial provides 5 videos and 14 specific steps to help new plugin maintainers as they adopt a plugin. If you're unwilling or unable to contribute to the folder based authorization plugin, then you can consider the workarounds suggested in JENKINS-72433 .

            abhyudaya Abhyudaya Sharma
            ganeshk Ganesh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: