chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Müller (JIRA) <j...@apache.org>
Subject [jira] [Commented] (CMIS-983) AtomPub: DotCMIS IChangeEvents.LatestChangeLogToken returns same token as given to GetContentChanges
Date Tue, 12 Jul 2016 08:59:20 GMT

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

Florian Müller commented on CMIS-983:
-------------------------------------

I've applied your patch with a small change. Please retest.

> AtomPub: DotCMIS IChangeEvents.LatestChangeLogToken returns same token as given to GetContentChanges
> ----------------------------------------------------------------------------------------------------
>
>                 Key: CMIS-983
>                 URL: https://issues.apache.org/jira/browse/CMIS-983
>             Project: Chemistry
>          Issue Type: Bug
>          Components: dotcmis
>    Affects Versions: DotCMIS 0.7
>         Environment: Alfresco 5, Windows 7, Visual Studio 2010, .NET 4.0
>            Reporter: Nicolas Raoul
>            Assignee: Florian Müller
>
> This code loops forever:
>             IChangeEvents changes;
>             do
>             {
>                 changes = session.GetContentChanges(token, false, 3);
>                 token = changes.LatestChangeLogToken;
>             }
>             while (changes.HasMoreItems ?? false);
> ... because LatestChangeLogToken returns the same token as the one provided to GetContentChanges.
> Instead, LatestChangeLogToken should return the token of the latest change contained
in the IChangeEvents object, if my understanding is correct.
> Ready-to-run minimal code showing the problem: https://github.com/nicolas-raoul/dotcmis-issue983



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message