Details
-
Bug
-
Resolution: Fixed
-
Neutral
-
6.2.14
-
None
-
None
-
-
Empty show more show less
-
Yes
-
Pages Maintenance 3, Pages Maintenance 4
-
2
Description
To reproduce
- create a new page by choosing a name led by a whitespace
- Magnolia throws the runtime exception below
Caused by: org.apache.jackrabbit.spi.commons.conversion.MalformedPathException: ' a space precedes this name' is not a valid path. ' ' not valid name start at org.apache.jackrabbit.spi.commons.conversion.PathParser.parse(PathParser.java:392) ~[jackrabbit-spi-commons-2.20.0.jar:?] [...] at info.magnolia.jcr.util.NodeNameHelper.getUniqueName(NodeNameHelper.java:127) ~[magnolia-core-6.2.1-SNAPSHOT.jar:?] at [...] info.magnolia.pages.app.action.browser.CreatePageAction.execute(CreatePageAction.java:92) ~[magnolia-pages-app-6.2.1-SNAPSHOT.jar:?]
I guess Magnolia could be more forgiving by trimming leading and trailing spaces or NodeNameHelper.getUniqueName(..) could replace them with - character as it does with in name whitespaces.
Checklists
Acceptance criteria
Attachments
Issue Links
- clones
-
PAGES-410 Let Magnolia be more forgiving with leading and trailing spaces in node names
-
- Closed
-