[ Steps to reproduce]
1. Install Alfresco 4.0.2.9 using Alfresco installer
Use Lucene search system
2. Verify cmis connection works fine with AtomPub URL
http://HOST:PORT/alfresco/cmisatom
3. Install Alfresco 4.1.5 using Alfresco installer
Use Lucene search system
4. Verify cmis connection works fine with AtomPub URL
http://HOST:PORT/alfresco/cmisatom
5. Upgrade: point Alf4.1.5 to Alf4.0.2.9 alf_data and DB
6. Verify Alf4.1.5 works fine
7. Verify cmis connection works fine with AtomPub URL
http://HOST:PORT/alfresco/cmisatom
[ Actual Result]
Connection fails with error message:
org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException: Parsing exception! at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.parse(AbstractAtomPubService.java:531) at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.getRepositoriesInternal(AbstractAtomPubService.java:719) at org.apache.chemistry.opencmis.client.bindings.spi.atompub.RepositoryServiceImpl.getRepositoryInfos(RepositoryServiceImpl.java:59) at org.apache.chemistry.opencmis.client.bindings.impl.RepositoryServiceImpl.getRepositoryInfos(RepositoryServiceImpl.java:85) at org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.getRepositories(SessionFactoryImpl.java:109) at org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.getRepositories(SessionFactoryImpl.java:96) at org.alfresco.support.cmis.cmis_test.CmisCmisService.connect(CmisCmisService.java:29) at org.alfresco.support.cmis.cmis_test.CmisCmisService.main(CmisCmisService.java:39) Caused by: com.ctc.wstx.exc.WstxParsingException: Unrecognized XML directive; expected CDATA or comment ('<![CDATA[' or '<!--'). at [row,col {unknown-source}]: [26,3] at com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:605) at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:461) at com.ctc.wstx.sr.BasicStreamReader.nextFromTreeCommentOrCData(BasicStreamReader.java:3285) at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2822) at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019) at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AtomPubParser.next(AtomPubParser.java:650) at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AtomPubParser.parse(AtomPubParser.java:142) at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.parse(AbstractAtomPubService.java:529) ... 7 more
[ Expected Result]
Connection with no error
[Notes]
- Connection works fine with old AtomPub implementation:
"http://HOST:PORT/alfresco/s/cmis" - Tested with a client Java class (<opencmis.version>0.7.0</opencmis.version>)
and chemistry-opencmis-workbench-0.8.0