Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 'missing the Job/Configure permssion' error on Branch Sources page #822

Closed
wants to merge 2 commits into from
Closed

Conversation

ghost
Copy link

@ghost ghost commented Mar 6, 2024

Fix 'missing the Job/Configure permssion' error on Branch Sources page when used with the Role-Based Authorization Strategy plugin (JENKINS-72821)

Your checklist for this pull request

  • Make sure you are requesting to pull a topic/feature/bugfix branch (right side) and not your master branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or in Jenkins JIRA
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Did you provide a test-case? That demonstrates feature works or fixes the issue.

When this plugin is used in combination with the "Role-Based Authorization Strategy", the "Branch Sources" job configuration page throws the following error:

$USER is missing the Job/Configure permission

This error is shown even when the user has full Admin rights on the Jenkins instance.

I'm not sure that this fix is 100% correct, but it does resolve the problem. I noticed that another PR in a similar project fixed a similar issue (JENKINS-60116) by checking for the EXTENDED_READ permission.

So, I blindly did the same thing. Would appreciate someone checking my work!

Fixes #823

Stonewall Jackson and others added 2 commits March 6, 2024 17:04
When this plugin is used in combination with the "Role-Based
Authorization Strategy", the "Branch Sources" job configation page
throws the following error:

    $USER is missing the Job/Configure permission

This error is shown even when the user has full Admin rights on the
Jenkins instance.

I'm not sure that this fix is 100% correct, but it does resolve the
problem. I noticed that the following PR in a similar project fixed a
similar issue (JENKINS-60116) by checking for the `EXTENDED_READ`
permission:

jenkinsci/atlassian-bitbucket-server-integration-plugin#165

So I blindly did the same thing. Would appreciate someone checking my
work!
@ghost ghost closed this by deleting the head repository Jul 3, 2024
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"$user is missing the Job/Configure permission" error when using Role-Based Authorization Strategy
1 participant