[MNT-14275] ImporterComponent throws org.jaxen.saxpath.XPathSyntaxException if import binding is UUID_BINDING.UPDATE_EXISTING and childname has space Created: 25-Jun-15 Updated: 12-Feb-16 Resolved: 21-Aug-15
|Project:||Service Packs and Hot Fixes|
|Type:||Service Pack Request|
|Reporter:||Jennie Soria [X] (Inactive)||Assignee:||Closed Bugs (Inactive)|
|Remaining Estimate:||0 minutes|
|Time Spent:||1 day, 6 hours, 30 minutes|
|Original Estimate:||Not Specified|
|Attachments:||SiteBootstrapExecutorUPDATE_EXISTING.txt concept-library-folders.xml diffImporter5005.501.txt|
Given that we do not list import/export service in the public API, see ref: http://docs.alfresco.com/5.0/concepts/java-public-api-list.html, the following was discovered and likely needs to be reviewed/addressed as it looks like a minor fix.
When using ImporterBinding where the UUID_BINDING is set to
If the childName contains a space for example the xml has the following:
then it throws error similar to this
It looks like the ImporterComponent.java method UpdateExistingNodeImporterStrategy was updated in v5.0.1 Alfresco One, lines #1608-1621 added the "if (uuid==null)" to include this:
This looks like where this issue is propagating from.
Attached customer's example class and the xml file used to test as well as svn diff 220.127.116.11 to 5.0.1 /root/projects/repository/source/java/org/alfresco/repo/importer/