jsr-333
  1. jsr-333
  2. JSR_333-69

Change semantics of name globbing in Node.getNodes and friends

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      In the methods Node.getNodes(String namePattern), Node.getNodes(String[] nameGlobs) and the related getProperties, getNodeNames getNodeByType the globbing patterns are described (at least in the spec, section 5.2.2.1 Name Pattern) as matching only the qualified form of the node or property name.

      However, in 3.2.6 Use of Qualified and Expanded Names, it states that JCR names may be passed in either form. In fact an important part of introducing expanded form was to make it transparent to the API

      Though this does not strictly contradict the behavior of the matching methods, since the params are matching strings, not JCR names, it certainly violates the spirit of the rule.

      I propose to re-spec the methods so that matching is done against both qualified and expanded forms of the candidiate JCR names.

        Activity

        Hide
        Peeter Piegaze added a comment -

        This issue arose because I had spec'd Node.getNodesByType to match both qualified and expanded names of node types. So, alternatively I could just change that to match qualified names only. This would be less disruptive but technically sort of "wrong"

        Show
        Peeter Piegaze added a comment - This issue arose because I had spec'd Node.getNodesByType to match both qualified and expanded names of node types. So, alternatively I could just change that to match qualified names only. This would be less disruptive but technically sort of "wrong"
        Hide
        Peeter Piegaze added a comment -

        The Node methods getNodes, getNodeNames and getProperties that take glob pattern String arrays are now spec'd such that globbing will match both qualified and expanded forms of a name.

        Show
        Peeter Piegaze added a comment - The Node methods getNodes, getNodeNames and getProperties that take glob pattern String arrays are now spec'd such that globbing will match both qualified and expanded forms of a name.

          People

          • Assignee:
            Unassigned
            Reporter:
            Peeter Piegaze
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: