jsr-283
  1. jsr-283
  2. JSR_283-791

Expected behaviour of Node.getReferences/getWeakReferences if Node not referenceable

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: javadoc/api
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      791

      Description

      The RI returned an empty PropertyIterator when Node.getReferences was
      called on a Node that isn't referenceable.

      However, Node.getWeakReferences threw UnsupportedRepositoryOperation which
      i modified to empty PropertyIterator as well [1].

      As stated in the issue, i had a quick look at the javadoc and couldn't find
      what was the expected behavior.

      Not throwing feels better to me and i would suggest to state that in the
      method description.
      (I didn't check the specification though...)

      regards
      angela

      [1] https://issues.apache.org/jira/browse/JCR-2177

        Activity

        Hide
        Peeter Piegaze added a comment -

        chnaged platform

        Show
        Peeter Piegaze added a comment - chnaged platform
        Hide
        Peeter Piegaze added a comment -

        Clarified that both getReferences and getWeakreferences must return an empty iterator in all cases where
        this node has no referring (weak)reference properties, including the case where this node is not
        referenceable.

        Issues left open until fixed in RI

        Show
        Peeter Piegaze added a comment - Clarified that both getReferences and getWeakreferences must return an empty iterator in all cases where this node has no referring (weak)reference properties, including the case where this node is not referenceable. Issues left open until fixed in RI
        Hide
        anchela added a comment -

        issue JCR-2177 has been fixed including adding tests to the TCK for both references and weakreferences/

        Show
        anchela added a comment - issue JCR-2177 has been fixed including adding tests to the TCK for both references and weakreferences/

          People

          • Assignee:
            jsr-283-issues
            Reporter:
            anchela
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: