[
http://jira.nuxeo.org/browse/NXP-1058?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47648#action_47648
]
Stéfane Fermigier commented on NXP-1058:
----------------------------------------
What's the status ? Are the test bogus or is there a real issue ?
> broken tests dealing with document version restoring
> ----------------------------------------------------
>
> Key: NXP-1058
> URL: http://jira.nuxeo.org/browse/NXP-1058
> Project: Nuxeo Enterprise Platform
> Issue Type: Bug
> Components: Core
> Affects Versions: 5.1 M2
> Reporter: Olivier Grisel
> Assignee: Bogdan Stefanescu
> Priority: Major
> Fix For: 5.2 M4
>
>
> Steps to reproduce:
> - run the TestLocalAPI (testRestoreToVersion, testGetDocumentWithVerision,
> testCheckOut)
> In all three cases AbstractSession.restoreToVersion throws the following:
> 16:44:14,005 [main] ERROR ClientException : ClientException created...
> org.nuxeo.ecm.core.api.ClientException: Failed to restore document
> dd6fbdfd-b1c1-4bd7-b938-e57056d39922
> at
> org.nuxeo.ecm.core.api.AbstractSession.restoreToVersion(AbstractSession.java:1436)
> at
> org.nuxeo.ecm.core.api.TestAPI.testRestoreToVersion(TestAPI.java:1350)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at junit.framework.TestCase.runTest(TestCase.java:164)
> at junit.framework.TestCase.runBare(TestCase.java:130)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:120)
> at
> org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
> at
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
> Caused by: org.nuxeo.ecm.core.model.NoSuchPropertyException: The property at
> 'major_version' doesn't exists
> at org.nuxeo.ecm.core.jcr.JCRDocument.getLong(JCRDocument.java:406)
> at
> org.nuxeo.ecm.core.api.AbstractSession.restoreToVersion(AbstractSession.java:1412)
> ... 17 more
> To time to investigate further right now, please Bogdan or someone else have
> a look.
--
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