DocumentModel.refresh() shouldn't fail on not-yet-created doc
-------------------------------------------------------------
Key: NXP-6267
URL: https://jira.nuxeo.com/browse/NXP-6267
Project: Nuxeo Enterprise Platform
Issue Type: Bug
Affects Versions: 5.4
Reporter: Florent Guillaume
Assignee: Florent Guillaume
Fix For: 5.4.1
When doing doc.refresh() on a DocumentModel for which session.createDocument
has not been called yet, we shouldn't fail.
The semantics are "update to data saved by other docs" but there are none so
it's ok to do nothing.
org.nuxeo.ecm.core.api.ClientException: Failed to get refresh data
at
org.nuxeo.ecm.core.api.AbstractSession.refreshDocument(AbstractSession.java:3281)
at
org.nuxeo.ecm.core.api.impl.DocumentModelImpl.refresh(DocumentModelImpl.java:1582)
...
Caused by: org.nuxeo.ecm.core.api.WrappedException: Exception:
org.nuxeo.ecm.core.model.NoSuchDocumentException. message: No such document: No
such document: /doc
at
org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession.resolvePath(SQLSession.java:241)
at
org.nuxeo.ecm.core.api.DocumentResolver.resolveReference(DocumentResolver.java:68)
at
org.nuxeo.ecm.core.api.AbstractSession.resolveReference(AbstractSession.java:523)
at
org.nuxeo.ecm.core.api.AbstractSession.refreshDocument(AbstractSession.java:3254)
... 22 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.nuxeo.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets