If you retrieve a NestedView from either REST (GET /view/.../config.xml) or CLI (get-view), and then save it right back (POST /view/.../config.xml, update-view or create-view after deleting), the resulting view does not render. Depending on the subview you get either
(both stack traces from 1.554.x).
The reason is that View.writeXml explicitly omits the View.owner field when writing, yet NestedView.views makes no attempt to restore it when loading XML.
The workaround is to add
inside every nested view (<hudson.model.ListView> etc.) before sending the XML back to Jenkins.
|Field||Original Value||New Value|
|Remote Link||This issue links to "PR 19 (Web Link)" [ 11810 ]|
|Status||Open [ 1 ]||In Progress [ 3 ]|
|Assignee||Jesse Glick [ jglick ]|
|Workflow||JNJira [ 159232 ]||JNJira + In-Review [ 185541 ]|
|Status||In Progress [ 3 ]||In Review [ 10005 ]|
|Status||In Review [ 10005 ]||Resolved [ 5 ]|
|Resolution||Fixed [ 1 ]|