chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Tang (JIRA)" <>
Subject [jira] [Commented] (CMIS-871) Client API Atompub binding - getContentChanges still sends change log token even though I specify null for the changeLogToken parameter
Date Thu, 20 Nov 2014 18:55:33 GMT


Vincent Tang commented on CMIS-871:

I found the change link in GetRepositoryInfo response is 

        <atom:link href="http://localhost:8080/fncmis/resources/ICNAutomation/changes?changeLogToken=1017991.0"
rel="" type="application/atom+xml;type=feed"
title="Content changes of repository" cmisra:id="ICNAutomation"/>

I think OpenCMIS Client API using this as the base for the first getContentChanges call. Do
you think so?

However if so, I have a couple of questions

1. Should I not include the changeLogToken in the changes link in RepositoryInfo, like the
example in CMIS specification? 
2. Why does web service binding behave differently? In my settings, the SOAP message from
the same method doesn't include a change log token.
3. How do I make a call deliberately without a change log token so that I can get change events
from the beginning of the change logs any time? Our implementation has a first link. How does
OpenCMIS Client API support it? 

> Client API Atompub binding - getContentChanges still sends change log token even though
I specify null for the changeLogToken parameter
> ---------------------------------------------------------------------------------------------------------------------------------------
>                 Key: CMIS-871
>                 URL:
>             Project: Chemistry
>          Issue Type: Bug
>          Components: opencmis-client
>    Affects Versions: OpenCMIS 0.12.0
>         Environment: Windows 64 bits
>            Reporter: Vincent Tang
>              Labels: getContentChanges
> I found 2 OpenCMIS Client API problems in my test to use OpenCMIS Client API Session.getContentChanges(String
changeLogToken, boolean includeProperties). 
> The test is calling it like session.getContentChanges(null, false); You see I set null
to changeLogToken. Based on my understanding of CMIS specification, I assume that the API
would not include a change log token in the request.
> The problems I found are
> 1. OpenCMIS API send a changeLogToken anyway in Atompub binding but null in Web services
binding. The latter is compliant with CMIS specification but the former is not. I think the
OpenCMIS API in Atompub binding has a bug.
> 2. This API sends a default maxItems in request because our test doesn't specify one.
However OpenCMIS API sends an unreasonable maxItem 2147483647. I think it is the maximum value
of a java integer. It causes different effect in Atompub and web services bindings.
>     In Atompub binding, because of the bug (a change log token is passed in), CMIS passed
the change log token and the maxItems in the query, the query returns the change events after
the change log token. Therefore the test cases passed.
>     In web services binding, the null value change log token and the maxItems will effectively
return the entire change log from the repository. It causes the query hang and eventually
timed out after 300 seconds.
> This JIRA is reporting the first problem. I am not sure if the second problem (maxItems
= 2147483647 by default) is a problem. Because CMIS specification doesn't say anything about
the default maxItems. We will do something at server side to prevent such a unreasonable maxItems
to be used in query.

This message was sent by Atlassian JIRA

View raw message