Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-10237

automation client unmarshaller do not properly inject lock in documents

    XMLWordPrintable

    Details

    • 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

      Description

      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() );
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              slacoin Stéphane Lacoin
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: