mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-21 18:09:20 +00:00
Merge V3.4-BUG-FIX to HEAD
29233: ALF-8301: Unable to retrieve relationships via CMIS using session.getRelationships(..) call Addition of system test git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29279 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -56,7 +56,7 @@ public class AssociationIdRelationshipReference implements CMISRelationshipRefer
|
||||
{
|
||||
try
|
||||
{
|
||||
return cmisServices.getReadableObject(CMISServices.ASSOC_ID_PREFIX + this.assocId, AssociationRef.class);
|
||||
return cmisServices.getReadableObject(this.assocId, AssociationRef.class);
|
||||
}
|
||||
catch (CMISServiceException e)
|
||||
{
|
||||
|
@@ -145,6 +145,14 @@ public class ReferenceFactory
|
||||
public CMISRelationshipReference createRelationshipReferenceFromUrl(Map<String, String> args, Map<String, String> templateArgs)
|
||||
{
|
||||
String assocId = templateArgs.get("assoc_id");
|
||||
if (assocId == null)
|
||||
{
|
||||
assocId = templateArgs.get("id");
|
||||
}
|
||||
if (assocId == null)
|
||||
{
|
||||
assocId = args.get("noderef");
|
||||
}
|
||||
if (assocId != null)
|
||||
{
|
||||
return new AssociationIdRelationshipReference(cmisService, assocId);
|
||||
|
Reference in New Issue
Block a user