mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-15 15:02:20 +00:00
Merged 5.1.N (5.1.1) to HEAD (5.1)
- Merges from 5.1.0 (when it was 5.1) that did not make it to HEAD: 122506,122513,123118-123119 - RECORD ONLY Merges from HEAD: 119613-119617,119622,119706-119708, 119752-119753,120076-120078,120116,120166-120178,120182-120183, 120185-120193,120197-120201,120378-120385,120387,120431,120526, 120604-120625,120832-120842,120844-120849,120977-120982,121142-121144, 121313,121347-121348,121410,121412-121417,121684-121687,121802-121805, 121810-121815,121861,122287,122342,122361,122439-122441,122579,122921 - RECORD ONLY merges: 119602,119821-119822,119849,120065,120107, 120159,120260,120295,120339,120342,120371,120411-120412,120524,120527, 120696-120697,120705,120720,120746,120761,120819,120822,120893, 120935-120936,120993,121045,121119,121121,121132,121156-121157, 121299,121301,121309,121394,121408,121442,121481,121624,121626, 121672,121675,121692,121753,121795,121798,121852,121898,121981, 122030,122088,122114,122142,122213,122215,122217,122277,122340, 122343,122426,122487,122552,122554,122607,122654,122734,122861, 122906,122982,122985,122988,122996,123014,123031,123090, 123115-123117,123120 - Merge from 5.1.N of fix that should have gone into 5.1 (found because of conflict on merge) 123128: ACE-5155 Garbled message in patch-service.properties git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@123129 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -33,6 +33,7 @@ import org.alfresco.repo.virtual.config.NodeRefPathExpression;
|
||||
import org.alfresco.repo.virtual.ref.GetActualNodeRefMethod;
|
||||
import org.alfresco.repo.virtual.ref.Reference;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
import org.alfresco.service.cmr.security.PermissionService;
|
||||
import org.alfresco.service.namespace.NamespacePrefixResolver;
|
||||
import org.alfresco.service.namespace.QName;
|
||||
import org.alfresco.util.ISO9075;
|
||||
@@ -59,7 +60,6 @@ public class TemplateFilingRule implements FilingRule
|
||||
|
||||
private Map<String, String> stringProperties;
|
||||
|
||||
|
||||
public TemplateFilingRule(ActualEnvironment environment, String path, String type, Set<String> aspects,
|
||||
Map<String, String> properties)
|
||||
{
|
||||
@@ -176,15 +176,35 @@ public class TemplateFilingRule implements FilingRule
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
String[] pathElements = NodeRefPathExpression.splitAndNormalizePath(path);
|
||||
for (int i = 0; i < pathElements.length; i++)
|
||||
{
|
||||
pathElements[i]=ISO9075.decode(pathElements[i]);
|
||||
pathElements[i] = ISO9075.decode(pathElements[i]);
|
||||
}
|
||||
fParentRef = env.findQNamePath(pathElements);
|
||||
}
|
||||
|
||||
boolean noReadPermissions = false;
|
||||
if (fParentRef != null && !env.hasPermission(fParentRef,
|
||||
PermissionService.READ_PERMISSIONS))
|
||||
{
|
||||
fParentRef = null;
|
||||
noReadPermissions = true;
|
||||
}
|
||||
if (logger.isDebugEnabled())
|
||||
{
|
||||
if (fParentRef == null)
|
||||
{
|
||||
if (noReadPermissions)
|
||||
{
|
||||
logger.debug("Current user does not have READ_PERMISSIONS for filing path" + path + ".");
|
||||
}
|
||||
else
|
||||
{
|
||||
logger.debug("The filing path " + path + " doesn't exist.");
|
||||
}
|
||||
}
|
||||
}
|
||||
if (failIfNotFound && fParentRef == null)
|
||||
{
|
||||
throw new VirtualizationException("The filing path " + path + " could not be resolved.");
|
||||
|
Reference in New Issue
Block a user