[
https://issues.apache.org/jira/browse/OAK-4857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15530637#comment-15530637
]
Alexander Klimetschek edited comment on OAK-4857 at 9/28/16 7:37 PM:
---------------------------------------------------------------------
Yes, and the reserved JCR chars like {{: / [ ]}} are clearly documented in the
JCR spec and we have Text.escapeIllegalJcrChars() for it that is commonly used.
However, that these spaces and newlines etc. are not supported by the
Jackrabbit & Oak repository implementations is nowhere documented and there is
no utility for it. (The nitpick that regular spaces work in the middle, but not
at the start or end, is even less obvious). Actually, the details here were new
to me, and I have 8 years of JCR experience :D
was (Author: alexander.klimetschek):
Yes, and the reserved JCR chars like {{: / [ ]}} are clearly documented in the
JCR spec and we have Text.escapeIllegalJcrChars() for it that is commonly used.
However, that these spaces and newlines etc. are not supported by the
Jackrabbit & Oak repository implementations is nowhere documented and there is
no utility for it. Actually, the details here were new to me, and I have 8
years of JCR experience :D
> Support space chars common in CJK inside node names
> ---------------------------------------------------
>
> Key: OAK-4857
> URL: https://issues.apache.org/jira/browse/OAK-4857
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: core
> Affects Versions: 1.4.7, 1.5.10
> Reporter: Alexander Klimetschek
> Attachments: OAK-4857-tests.patch
>
>
> Oak (like Jackrabbit) does not allow spaces commonly used in CJK like
> {{u3000}} (ideographic space) or {{u00A0}} (no-break space) _inside_ a node
> name, while allowing them at the _beginning or end_.
> They should be supported for better globalization readiness, and filesystems
> allow them, making common filesystem to JCR mappings unnecessarily hard.
> Escaping would be an option for applications, but there is currently no
> utility method for it
> ([Text.escapeIllegalJcrChars|https://jackrabbit.apache.org/api/2.8/org/apache/jackrabbit/util/Text.html#escapeIllegalJcrChars(java.lang.String)]
> will not escape these spaces), nor is it documented for applications how to
> do so.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)