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

[JENKINS-61321] Fix permission check #4541

Merged
merged 1 commit into from Mar 5, 2020

Conversation

daniel-beck
Copy link
Member

@daniel-beck daniel-beck commented Mar 4, 2020

See JENKINS-61321.

Well, f***.

Manually confirmed working. Needs Project-based Matrix Authorization, and a user with Job/Configure on the per-job level, rather than the global configuration.

Proposed changelog entries

  • Do not disable all controls on job configuration forms for some users with Job/Configure permission. (regression in 2.223)

Proposed upgrade guidelines

N/A

Submitter checklist

  • JIRA issue is well described
  • Changelog entries and upgrade guidelines are appropriate for the audience affected by the change (users or developer, depending on the change). Examples
    • Fill-in the Proposed changelog entries section only if there are breaking changes or other changes which may require extra steps from users during the upgrade
  • Appropriate autotests or explanation to why this change has no tests
  • [n/a] For dependency updates: links to external changelogs and, if possible, full diffs

Desired reviewers

@mention

Maintainer checklist

Before the changes are marked as ready-for-merge:

  • There are at least 2 approvals for the pull request and no outstanding requests for change
  • Conversations in the pull request are over OR it is explicit that a reviewer does not block the change
  • Changelog entries in the PR title and/or Proposed changelog entries are correct
  • Proper changelog labels are set so that the changelog can be generated automatically
  • If the change needs additional upgrade steps from users, upgrade-guide-needed label is set and there is a Proposed upgrade guidelines section in the PR title. (example)
  • If it would make sense to backport the change to LTS, a JIRA issue should exist and be labeled as lts-candidate

@timja
Copy link
Member

timja commented Mar 4, 2020

🤕

@daniel-beck daniel-beck added major-bug For changelog: Major bug. Will be highlighted on the top of the changelog regression-fix Pull request that fixes a regression in one of the previous Jenkins releases labels Mar 4, 2020
@jvz
Copy link
Member

jvz commented Mar 4, 2020

image

@timja timja requested a review from a team March 4, 2020 16:34
Copy link
Member

@oleg-nenashev oleg-nenashev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops. We need to do more careful during the reviews. It is not the first time when we had such error, but the PR was fairly small and we should have caught it. OTOH low number of reports/votes suggests that the configuration-as-code/Pipeline-as-code adoption is going well

I plan to merge it tomorrow if no negative feedback.

@oleg-nenashev oleg-nenashev added the ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback label Mar 4, 2020
@timja
Copy link
Member

timja commented Mar 4, 2020

Manually confirmed working. Needs Project-based Matrix Authorization, and a user with Job/Configure on the per-job level, rather than the global configuration.

ugh I was just testing this for sanity, and was very confused when I couldn't re-produce this.

Well I'm not surprised I missed it when developing it =/

@timja timja merged commit 692c684 into jenkinsci:master Mar 5, 2020
olivergondza pushed a commit to olivergondza/jenkins that referenced this pull request May 5, 2020
…NKINS-61321

[JENKINS-61321] Fix permission check

(cherry picked from commit 692c684)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
major-bug For changelog: Major bug. Will be highlighted on the top of the changelog ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback regression-fix Pull request that fixes a regression in one of the previous Jenkins releases
Projects
None yet
5 participants