Details
-
Bug
-
Resolution: Cannot Reproduce
-
Neutral
-
None
-
None
-
None
-
None
Description
Steps to reproduce:
- create a zip file with name test characters].zip including some files inside
- open assets app and import zip file
You get an error like:
Caused by: org.apache.jackrabbit.spi.commons.conversion.MalformedPathException: '/test characters]' is not a valid path. '' not a valid name character.
There must be a processing of the path name in order to avoid non-allowed characters. Special case is blank, which is allowed but ends up causing issues when linking to resources(see SUPPORT-10123)
Problem appears here (line 80):
info.magnolia.commands.impl.BaseRepositoryCommand.getJCRNode(Context)
if (StringUtils.isNotEmpty(getUuid())) { node = session.getNodeByIdentifier(getUuid()); } else { node = session.getNode(getPath()); }
The return of getPath() should be processed in order to control illegal chars
Checklists
Acceptance criteria