-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 5.6
-
Fix Version/s: 5.6.0-HF07, 5.7.1
-
Component/s: None
-
Impact type:API added
Here is the code that fails
// Getting the document Document doc = (Document) session.newRequest("Document.Fetch") .setHeader(Constants.HEADER_NX_SCHEMAS, "*") .set("value", nxParams.getInputPath()) .execute(); System.out.println("before setting the lock, doc.getLock()=" + doc.getLock() ); // Setting the lock session.newRequest("Document.Lock") .setHeader(Constants.HEADER_NX_VOIDOP, "*") .set("owner", nxParams.getUser()) .setInput(doc) .execute(); // Refreshing the document doc = (Document) session.newRequest("Document.Fetch") .setHeader(Constants.HEADER_NX_SCHEMAS, "*") .set("value", nxParams.getInputPath()) .execute(); System.out.println("after setting the lock, doc.getLock()=" + doc.getLock() );