Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
None
Description
testQueryURITemplate(org.apache.chemistry.tck.atompub.test.spec.RepositoryServiceTest) Time elapsed: 0.052 sec <<< ERROR!
java.lang.NullPointerException
<------>at org.apache.chemistry.tck.atompub.test.spec.RepositoryServiceTest.testQueryURITemplate(RepositoryServiceTest.java:73)
Because there is no Capabilities element within getRepositories response.
<------>at org.apache.chemistry.tck.atompub.client.CMISClient.getRepository(CMISClient.java:135) <------>at org.apache.chemistry.tck.atompub.client.CMISClient.getRepositoryInfo(CMISClient.java:157) <------>at org.apache.chemistry.tck.atompub.client.CMISClient.getRepositoryInfo(CMISClient.java:152) <------>at org.apache.chemistry.tck.atompub.client.CMISClient.getCapabilities(CMISClient.java:166) <------>at org.apache.chemistry.tck.atompub.test.spec.RepositoryServiceTest.testQueryURITemplate(RepositoryServiceTest.java:72)
Request req = new GetRequest(serviceUrl); // << Should be there the serviceUrl with cmis repo name, to request getRepositoryInfo
The serviceUrl is for request getRepositories, not for getRepositoryInfo.
===============
SPECIFICATION: 2.1.1.1 Optional Capabilities 58 59 Commercial ECM repositories vary in their designs. Moreover, some repositories are designed for a 60 specific application domain and may not provide certain capabilities that are not needed for their targeted 61 domain. Thus, a repository implementation may not necessarily be able to support all CMIS capabilities. A few CMIS capabilities are therefore "optional" for a repository to be compliant. A repository‟s support for 62 63 each of these optional capabilities is discoverable using the >>> getRepositoryInfo <<< service 64 2.2.2.1 getRepositories 3026 2.2.2.1.2 Outputs 3030 3031 A list of repository information, with (at least) the following information for each entry: 3032 ID repositoryId: The identifier for the Repository. 3033 String repositoryName: A display name for the Repository. 2.2.2.2 getRepositoryInfo 3036 3037 Description: Returns information about the CMIS repository, the optional capabilities it supports and its 3038 Access Control information if applicable. .