|
|
|
Issue Type:
|
Bug
|
Assignee:
|
Unassigned |
Components:
|
core |
Created:
|
14/Apr/15 7:35 PM
|
Description:
|
The ItemGroupMixin calls save() on a newly created item before it adds the item to the parent ItemGroup - see code.
Unfortunately the call to save will trigger SaveableListener.onChange() to be called.
The issue here is the Object that gets passed to the SaveableListener will have a parent that knows nothing about this Item.
Arguably onChange() should not even be called for the item - as by definition it has not changed - just been born.
Note this was observed whilst inspecting code around a proprietary plugin.
|
Project:
|
Jenkins
|
Labels:
|
jenkins
|
Priority:
|
Minor
|
Reporter:
|
James Nord
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.