[
http://jira.nuxeo.org/browse/NXP-3031?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Radu Darlea resolved NXP-3031.
------------------------------
Resolution: Fixed
Deny making next() without a guarding hasNext() in the iterator implemented in
/nuxeo-core-folder-versioning/src/main/java/org/nuxeo/core/versioning/folder/FSCustomVersioningService.java
If there is no hasNext() return the found document as it is. The caller has
further to check it's label and realize it is unusable version.
Added a unit test for it in
/nuxeo-core-folder-versioning/src/test/java/org/nuxeo/core/versioning/folder/test/TestFolderishVersioning.java
> Removal of last version crashes the application
> -----------------------------------------------
>
> Key: NXP-3031
> URL: http://jira.nuxeo.org/browse/NXP-3031
> Project: Nuxeo Enterprise Platform
> Issue Type: Bug
> Components: JCRConnector
> Affects Versions: 5.1.6
> Reporter: Radu Darlea
> Assignee: Radu Darlea
> Fix For: 5.1.7
>
> Original Estimate: 4 hours
> Remaining Estimate: 4 hours
>
> Steps to reproduce:
> - make snapshot for a folder
> - delete the version
> The application crashes with JCR exception, AbstractSession is no longer
> valid.
> It can be reproduced with any number of versions.
> The problem is the iterator in JCR which performs a next without checking
> has() method.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets