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

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

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.


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

Posted by "Alexey Zavizionov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CMIS-153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845330#action_12845330 ] 

Alexey Zavizionov commented on CMIS-153:
----------------------------------------

We are agree with that the spec needs to be clear for query GET.
It's ok to use GET for uri templates.

> 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.


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

Posted by "Florent Guillaume (JIRA)" <ji...@apache.org>.
    [ 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.


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

Posted by "David Caruana (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CMIS-153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12844038#action_12844038 ] 

David Caruana commented on CMIS-153:
------------------------------------

The spec needs to be made much clearer re: query GET support. It is supported.

See:

http://tools.oasis-open.org/issues/browse/CMIS-172
http://tools.oasis-open.org/issues/browse/CMIS-378

GET query support is required for the 'query' URI template which must be provided, if the repository supports query.

In Alfresco, the paging links are rendered in accordance with the query URI template.

I believe the TCK is complying with the spec, and would like close this as not a bug.

> 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.


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

Posted by "David Caruana (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CMIS-153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Caruana resolved CMIS-153.
--------------------------------

    Resolution: Not A Problem

> 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.