You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Florent Guillaume (JIRA)" <ji...@apache.org> on 2010/03/11 12:16:27 UTC

[jira] Commented: (CMIS-153) There is no GET method for Query service in the specification. Use POST (3.7.2.1) instead.

    [ https://issues.apache.org/jira/browse/CMIS-153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12844023#action_12844023 ] 

Florent Guillaume commented on CMIS-153:
----------------------------------------

Nothing I see in the specs says that the links provided (here in the test as a rel="next") cannot be used with GET.

On the contrary, there's only a few place where POST to collections (and a few DELETE etc) are defined, most of the time when reading the spec I assume GET.
Maybe this needs to be stated explicitly, but I think that's how AtomPub works.


> There is no GET method for Query service in the specification. Use POST (3.7.2.1) instead.
> ------------------------------------------------------------------------------------------
>
>                 Key: CMIS-153
>                 URL: https://issues.apache.org/jira/browse/CMIS-153
>             Project: Chemistry
>          Issue Type: Bug
>          Components: tck
>            Reporter: Alexey Zavizionov
>
> java.lang.AssertionError: Request status for http://localhost:8080/xcmis/rest/cmisatom/cmis1/query/?q=SELECT%20cmis%3AobjectId%2C%20cmis%3AobjectTypeId%2C%20cmis%3Aname%20FROM%20cmis%3Adocument%20WHERE%20IN_FOLDER%28%2749779dd17f000101005c9ab594dabe11%27%29&maxItems=4&skipCount=4 expected:<200> but was:<405>
> 	at org.junit.Assert.fail(Assert.java:92)
> 	at org.junit.Assert.failNotEquals(Assert.java:689)
> 	at org.junit.Assert.assertEquals(Assert.java:127)
> 	at org.junit.Assert.assertEquals(Assert.java:514)
> 	at org.apache.chemistry.tck.atompub.client.CMISClient.executeRequest(CMISClient.java:539)
> 	at org.apache.chemistry.tck.atompub.client.CMISClient.executeRequest(CMISClient.java:510)
> 	at org.apache.chemistry.tck.atompub.client.CMISClient.getFeed(CMISClient.java:354)
> 	at org.apache.chemistry.tck.atompub.client.CMISClient.getFeed(CMISClient.java:349)
> 	at org.apache.chemistry.tck.atompub.test.spec.QueryPagingTest.testQueryPaging(QueryPagingTest.java:111)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.