You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by fm...@apache.org on 2017/03/06 16:03:54 UTC

svn commit: r1785677 - /chemistry/portcmis/trunk/PortCMIS/binding/atompub/AtomPubUtils.cs

Author: fmui
Date: Mon Mar  6 16:03:54 2017
New Revision: 1785677

URL: http://svn.apache.org/viewvc?rev=1785677&view=rev
Log:
CMIS-1015: AtomPub: fixed wrong link cache key

Modified:
    chemistry/portcmis/trunk/PortCMIS/binding/atompub/AtomPubUtils.cs

Modified: chemistry/portcmis/trunk/PortCMIS/binding/atompub/AtomPubUtils.cs
URL: http://svn.apache.org/viewvc/chemistry/portcmis/trunk/PortCMIS/binding/atompub/AtomPubUtils.cs?rev=1785677&r1=1785676&r2=1785677&view=diff
==============================================================================
--- chemistry/portcmis/trunk/PortCMIS/binding/atompub/AtomPubUtils.cs (original)
+++ chemistry/portcmis/trunk/PortCMIS/binding/atompub/AtomPubUtils.cs Mon Mar  6 16:03:54 2017
@@ -928,7 +928,7 @@ namespace PortCMIS.Binding.AtomPub
                 string streamId = ExtractStreamId(link);
                 if (streamId != null)
                 {
-                    linkCache.Put(new string[] { link, repositoryId, id, rel }, streamId);
+                    linkCache.Put(new string[] { repositoryId, id, rel, streamId }, link);
                 }
             }
         }
@@ -1010,7 +1010,7 @@ namespace PortCMIS.Binding.AtomPub
         {
             if (KnownLinks.Contains(rel))
             {
-                typeLinkCache.Put(new string[] { link, repositoryId, id, rel }, type);
+                typeLinkCache.Put(new string[] { repositoryId, id, rel, type }, link);
             }
         }