![]() |
|
|
|
|
Change By:
|
Federico Grilli
(09/Dec/13 3:34 PM)
|
|
Description:
|
Suppose you're
creating a new node and
doing some additional validation in an action, besides that done by the validator proper. If such additional validation fails for some reason, you are presented again with the form to fix the data you entered before. Now data are correct, you hit the submit button and no validation error will occur. However, the action will fail again, this time with NPE. Reason is at {{info.magnolia.ui.form.action.SaveFormAction.execute()}} line #90 which reads {{item.applyChanges();}}. What happened is that the underlying JCR session has expired in the meantime so that calling again {{item.applyChanges();}} will return null, that item being temporarily created in the previous session and now no longer available.
|
|
|
|
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
|
----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <
[email protected]>
----------------------------------------------------------------