Issue (View Online)

Key: NXP-583
Issue Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Dragos Mihalache
Reporter: Bogdan Stefanescu
Original Estimate: 2 hours
Remaining Estimate: 2 hours

Operations

View all
View comments
View history
CoreSession.saveDocumentAsNewVersion don't work on documents that were not yet versioned 
Updated: 26/02/07 18:05   Created: 09/02/07 17:00  

The following comment has been added to this issue: [ Permlink ]

Author: Thierry Delprat
Date: 26/02/07 18:05
Comment:
This is still the case .....

Project: Nuxeo Enterprise Platform 5
Components: Core
Fix Versions: 5.1 M1

 Description   
CoreSession.saveDocumentAsNewVersion don't work on documents that were not yet versioned
When calling this method on a document not yet versioned an exception is thrown by
--> generateVersionLabelFor()
   ---> getVersionsForDocument()
      ---> doc.getVersions()

because it tries to access the versionHistory node for this document and the node doesn't exists

If you manually make a checkout on the doc (create a new version) the the method will work correctly

This message was automatically generated by Atlassian JIRA Enterprise Edition, Version: 3.7.2-186 - Bug/feature request.
If you think it was sent incorrectly, contact one of this server's administrators.

_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to