-
Bug
-
Resolution: Fixed
-
Major
-
None
-
core:2.403
core:2.361.3
-
-
2.406
When an item with the name "elements" exists where a view is being edited/created, trying to save the view results in a popup error: TypeError: Cannot set properties of null (setting 'value') (for not submitted)
It could be any kind of item - a freestyle job, a pipeline, a maven job, a folder, ... - the name elements is that is listed within the "Job filters" is what causes the problem:
- causes
-
JENKINS-71403 All jobs lost after edit&save of view configuration (regression in 2.406)
-
- Closed
-
-
JENKINS-71663 Adapt to JENKINS-71200 in Calendar View (regression in 2.406)
-
- Resolved
-
- links to
[JENKINS-71200] Cannot edit / create ListViews if an item with name 'elements' exist
Attachment | New: error.png [ 60371 ] | |
Attachment | New: job-filters-section.png [ 60372 ] |
Description |
Original:
When an item with the name "elements" exists where a view is being edited/created, trying to save the view results in a popup error: {{TypeError: Cannot set properties of null (setting 'value') (for not submitted)}}
It could be any kind of item - a freestyle job, a pipeline, a maven job, a folder, ... - the name {{elements}} is that is listed within the "Job filters" is what causes the problem: |
New:
When an item with the name "elements" exists where a view is being edited/created, trying to save the view results in a popup error: {{TypeError: Cannot set properties of null (setting 'value') (for not submitted)}}
!error.png|thumbnail! It could be any kind of item - a freestyle job, a pipeline, a maven job, a folder, ... - the name {{elements}} is that is listed within the "Job filters" is what causes the problem: |
Description |
Original:
When an item with the name "elements" exists where a view is being edited/created, trying to save the view results in a popup error: {{TypeError: Cannot set properties of null (setting 'value') (for not submitted)}}
!error.png|thumbnail! It could be any kind of item - a freestyle job, a pipeline, a maven job, a folder, ... - the name {{elements}} is that is listed within the "Job filters" is what causes the problem: |
New:
When an item with the name "elements" exists where a view is being edited/created, trying to save the view results in a popup error: {{TypeError: Cannot set properties of null (setting 'value') (for not submitted)}}
!error.png|thumbnail! It could be any kind of item - a freestyle job, a pipeline, a maven job, a folder, ... - the name {{elements}} is that is listed within the "Job filters" is what causes the problem: !job-filters-section.png|thumbnail! |
Environment |
Original:
core:2.403
core:2.361.4 |
New:
core:2.403
core:2.361.3 |
Attachment | New: dom-without-item-elements.png [ 60373 ] | |
Attachment | New: dom-with-item-elements.png [ 60374 ] |
Assignee | New: Allan BURDAJEWICZ [ allan_burdajewicz ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Status | Original: In Progress [ 3 ] | New: In Review [ 10005 ] |
That is where it fails
And basically that's because form.elements is not an array but the input with name elements:
This input is generated by the ListView configure-entries.jelly:
It produces the following input:
Might have to do with the fact that elements can be accessed by name / id ? So the input named elements overload the elements property ?