MNT-17932 Searching in a folder without a “cm:” inside the technical path doesn’t deliver any results

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@137161 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Andrew Hind
2017-06-06 09:09:43 +00:00
parent c1d2a456d7
commit 9f8d523640

View File

@@ -1215,7 +1215,12 @@ public class ScriptNode implements Scopeable, NamespacePrefixResolverProvider
prefix = prefixes.size() != 0 ? prefixes.iterator().next() : "";
cache.put(qname.getNamespaceURI(), prefix);
}
buf.append('/').append(prefix).append(':').append(ISO9075.encode(qname.getLocalName()));
buf.append('/');
if(prefix.length() > 0)
{
buf.append(prefix).append(':');
}
buf.append(ISO9075.encode(qname.getLocalName()));
}
}
else