-
Bug
-
Resolution: Fixed
-
Minor
If you try to update a view using the CLI command update-view using input of a different view type, the command succeeds. This is not correct.
Steps to reproduce:
- Create view of typeA using UI
- Get xml representation of view
- java -jar jenkins-cli.jar -s http://localhost:8080/jenkins/ get-view ViewTypeA > typeA.xml
- Create view of typeB using UI
- Update view using xml from typeA
- java -jar jenkins-cli.jar -s http://localhost:8080/jenkins/ update-view ViewTypeB < typeA.xml
- The command succeeds.