Uploaded image for project: 'Chemistry (Retired)'
  1. Chemistry (Retired)
  2. CMIS-1015

GetTypeDescendants is not working - typeLinkCache problem

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • PortCMIS 0.1.0
    • PortCMIS 0.2.0
    • portcmis
    • 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[]

      { link, repositoryId, id, rel }

      , type);
      typeLinkCache.Put(new string[]

      { repositoryId, id, rel, type }

      , link);
      }
      }

      Attachments

        Activity

          People

            fmui Florian Müller
            idryl Álvaro de los Reyes
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: