-
Bug
-
Resolution: Duplicate
-
Major
-
Jenkins Version - 2.440.1
Plugin Version - 1.4
Jenkins Running on Amazon Linux
I tried on both edge and chrome browsers, both running with latest versions
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 |
- duplicates
-
JENKINS-72433 Can not add role in Jenkins 2.426.1 with folder auth plugin because Prototype.js is used in folder auth plugin
-
- Open
-
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.