mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fix ALF-4363 - XPath based queries don't work when attribute value contains @
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22190 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -119,12 +119,6 @@ public class NodeSearcher
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// match '@' in a folder/filename (but do not match XPath query syntax '[@' or '/@' or '(@' or '@*')
|
||||
// TODO cannot yet match '(@' or '[@' in a folder/filename - would need to identify and encode path elements
|
||||
xpath = xpath.replaceAll("(?<![/\\[(])@(?!//*)", "_x0040_");
|
||||
}
|
||||
|
||||
DocumentNavigator documentNavigator = new DocumentNavigator(dictionaryService, nodeService, searchService,
|
||||
namespacePrefixResolver, followAllParentLinks, useJCRXPath);
|
||||
|
Reference in New Issue
Block a user