Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-562

Clean up duplicate name conversion in plugins/nodetype

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.6
    • core
    • None

    Description

      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.

      Attachments

        Activity

          People

            jukkaz Jukka Zitting
            angela Angela Schreiber
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: