-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 7.10
-
Component/s: Annotations
-
Tags:
-
Backlog priority:500
-
Sprint:nxfit 8.3.2
-
Story Points:3
To reproduce, start LTS 2015, hotfix, mp-install nuxeo-dm and create file annot-config.xml in nxserver/config with below contents:
<?xml version="1.0"?> <component name="org.nuxeo.ecm.platform.annot.config"> <require>org.nuxeo.ecm.platform.annot.properties</require> <extension target="org.nuxeo.runtime.ConfigurationService" point="configuration"> <property name="nuxeo.text.annotations">true</property> </extension> </component>
Launch Nuxeo and drag and drop hello.doc. Preview in a Fancybox and add an Annotation. The following will appear in server.log, followed by some other errors, and Javascript errors will show in the browser's console (see screenshots)
19:17:05,817 ERROR [NuxeoRequestControllerFilter] remote=127.0.0.1,principal=none,uri=/nuxeo/Annotations,session=3CA56A50403FA3494475EC74FC7EB663.nuxeo,thread=http-bio-0.0.0.0-8080- exec-1,info=Unhandled error was caught by the Filter java.lang.IllegalArgumentException: Invalid predicate in statement: StatementImpl(ResourceImpl('urn:annotation:63af8ca9-22d7-4d75-8ef7-9e2d788a0c36'), ResourceImpl('http://www.nuxeo .org/document/uid/endContainer'), LiteralImpl('/html[1]/body[1]/div[1]/p[1], 13^^http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral'))
Use the rest of the Office documents in https://github.com/nuxeo/nuxeo/tree/master/nuxeo-core/nuxeo-core-convert-plugins-test/src/test/resources/test-docs to verify that the issue is resolved for all document types.