-
Type: Improvement
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 5.8.0-HF27, 6.0-HF01
-
Fix Version/s: 5.8.0-HF28, 6.0-HF02, 7.1
-
Component/s: Elasticsearch
-
Tags:
-
Sprint:Sprint RepoTeam 7.1-2
VCS accepts to save transient document that point to existing document.
For instance:
DocumentModel tmpDoc = session.createDocumentModel("/", "myfile", "File"); DocumentModel doc = session.createDocument(tmpDoc); // change the transient document instead of the returned one tmpDoc.setPropertyValue("dc:title", "NewTitle"); session.saveDocument(tmpDoc);
The tmpDoc in the above ex has a null docId. The update is persisted in VCS but not indexed by ES because it complains about a null doc id.