-
Bug
-
Resolution: Fixed
-
Major
copy-job checks CREATE on Jenkins root, when it only needs to do so on the actual target of the copy. Also it fails to check EXTENDED_READ on the source.
create-job also checks CREATE needlessly on root.
copy-job checks CREATE on Jenkins root, when it only needs to do so on the actual target of the copy. Also it fails to check EXTENDED_READ on the source.
create-job also checks CREATE needlessly on root.
Code changed in jenkins
User: Jesse Glick
Path:
changelog.html
core/src/main/java/hudson/cli/CopyJobCommand.java
core/src/main/java/hudson/cli/CreateJobCommand.java
core/src/main/java/hudson/model/ItemGroupMixIn.java
test/src/test/java/hudson/cli/CopyJobCommandTest.java
test/src/test/java/hudson/cli/CreateJobCommandTest.java
http://jenkins-ci.org/commit/jenkins/8861563bd1e7fc28c5686f0dc9552529cfdfbf45
Log:
[FIXED JENKINS-22262] CopyJobCommand and CreateJobCommand were doing incorrect permission checks.
Compare: https://github.com/jenkinsci/jenkins/compare/aaa50018eef1...8861563bd1e7