Álvaro de los Reyes created CMIS-1015:
-----------------------------------------
Summary: 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
I've made the call "session.GetTypeDescendants("cmis:document", -1, true)".
It doesn't work, returns CmisObjectNotFoundException.
The problem is in cache, 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)