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] [Resolved] (CMIS-1015) GetTypeDescendants is not working - typeLinkCache problem
Date Mon, 06 Mar 2017 16:04:32 GMT

     [ https://issues.apache.org/jira/browse/CMIS-1015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Florian Müller resolved CMIS-1015.
----------------------------------
       Resolution: Fixed
    Fix Version/s: PortCMIS 0.2.0

Thanks for the report!

> GetTypeDescendants is not working - typeLinkCache problem
> ---------------------------------------------------------
>
>                 Key: CMIS-1015
>                 URL: https://issues.apache.org/jira/browse/CMIS-1015
>             Project: Chemistry
>          Issue Type: Bug
>          Components: portcmis
>    Affects Versions: PortCMIS 0.1.0
>         Environment: Sharepoint 2013
>            Reporter: Álvaro de los Reyes
>            Assignee: Florian Müller
>             Fix For: PortCMIS 0.2.0
>
>
> I've made the call "session.GetTypeDescendants("cmis:document", -1, true)".
> It doesn't work, returns CmisObjectNotFoundException.
> The problem is in cache called "typeLinkCache".
> In AtomPubUtils class, the function "GetTypeLink" searches the link by the following
parameters: repositoryId, id, rel, type.
> However, in the method "AddTypeLink" add the link to typeLinkCache by the following keys:
link, repositoryId, id, rel.
> I change the implementation of the method "AddTypeLink" and it work properly:
> public void AddTypeLink(string repositoryId, string id, string rel, string type, string
link)
>         {
>             if (KnownLinks.Contains(rel))
>             {
>                 //typeLinkCache.Put(new string[] { link, repositoryId, id, rel }, type);
>                 typeLinkCache.Put(new string[] { repositoryId, id, rel, type }, link);
>             }
>         }



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message