angela created OAK-562:
--------------------------

             Summary: Clean up duplicate name conversion in plugins/nodetype
                 Key: OAK-562
                 URL: https://issues.apache.org/jira/browse/OAK-562
             Project: Jackrabbit Oak
          Issue Type: Improvement
          Components: core
            Reporter: angela


the following two lines are omnipresent in the node type package:

JcrNameParser.checkName(name, true);
this.name = mapper.getJcrName(mapper.getOakNameOrNull(name));

as discussed in OAK-553 this is quite troublesome as getJcrName expects
a null oak name parameter and in addition looks odd.

possibles solutions include:
- refactoring this to a new method in the NameMapper (getNormalizedJcrName)
- refactor the code such that the node type related implementations
  keep oak-names internally and convert them to the standard jcr-form
  on demand.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to