jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Pfister (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (JCR-895) Registering node type names with spaces fails in clustered environment
Date Thu, 03 May 2007 13:22:15 GMT

     [ https://issues.apache.org/jira/browse/JCR-895?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dominique Pfister resolved JCR-895.
-----------------------------------

    Resolution: Fixed

Internally, a node type definition is serialized (deserialized) via CompactNodeTypeDefWriter
(CompactNodeTypeDefReader). The writer serializes QName "as is", i.e. without escaping any
character inside it. The reader, on the other hand, treats spaces as token delimeters and
will therefore fail if some QName contains spaces.

Fixed by encoding (decoding) QNames with ISO9075 before writing (after reading) in revision
534843. Thanks to Martijn Hendriks for reporting this bug.

> Registering node type names with spaces fails in clustered environment
> ----------------------------------------------------------------------
>
>                 Key: JCR-895
>                 URL: https://issues.apache.org/jira/browse/JCR-895
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.3
>            Reporter: Dominique Pfister
>         Assigned To: Dominique Pfister
>
> Registering a node type name that contains at least one space in a clustered environment
will cause a JournalException in cluster nodes trying to read that change back from the journal.
The stack trace observed is:
> JournalException: Parse error while reading node type definition.
>        at AbstractRecord.readNodeTypeDef(AbstractRecord.java:245)
>        ...
> Caused by: ParseException: Missing '[' delimiter for beginning of node type name ((internal),
line 47)
>        at Lexer.fail(Lexer.java:148)
>        ...
> (package names and intermediate frames omitted for brevity).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message