History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: NXP-583
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Bogdan Stefanescu
Reporter: Bogdan Stefanescu
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Google issue summary
Nuxeo Enterprise Platform

CoreSession.saveDocumentAsNewVersion don't work on documents that were not yet versioned

Created: 09/02/07 17:00   Updated: 28/02/07 21:23
Component/s: Core
Affects Version/s: None
Fix Version/s: 5.1 M1

Time Tracking:
Original Estimate: 2 hours
Original Estimate - 2 hours
Remaining Estimate: 2 hours
Remaining Estimate - 2 hours
Time Spent: Not Specified
Remaining Estimate - 2 hours

Resolution Date: 28/02/07 21:21
Require Callback: No
Participants: Bogdan Stefanescu, Dragos Mihalache, Eric Barroca and Thierry Delprat
Date of First Response: 15/02/07 19:24
Tags:


 Description  « Hide
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



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Eric Barroca - 15/02/07 19:24
Is it still the case?

Thierry Delprat - 26/02/07 18:05
This is still the case .....

Dragos Mihalache - 28/02/07 21:21
Added test cases to verify that. The fix is actually a patch for jackrabbit.

Impacted files:
VersionableDocument.java
AbstractSession.java
JCRVersioningService.java <-- contains the patch
facade/TestVersioning.java
facade/TestCustomVersioning.java