Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
PortCMIS 0.1.0
-
None
-
Sharepoint 2013
-
Important
Description
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[]
, type);
typeLinkCache.Put(new string[]
, link);
}
}