Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-6907

Misleading Javadoc for SearchScope.valueOf(String name)

    Details

    • Type: Bug
    • Status: Dev backlog
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 7.0.0
    • Fix Version/s: None
    • Component/s: ease of use
    • Labels:
      None

      Description

      The Javadoc says, "Returns the search scope having the specified name as defined in RFC 4511 section 4.5.1.2."

      https://tools.ietf.org/html/rfc4511#section-4.5.1.2 says:

      Specifies the scope of the Search to be performed. The semantics (as
      described in [X.511]) of the defined values of this field are:

      baseObject: The scope is constrained to the entry named by
      baseObject.

      singleLevel: The scope is constrained to the immediate
      subordinates of the entry named by baseObject.

      wholeSubtree: The scope is constrained to the entry named by
      baseObject and to all its subordinates.

      So you might think you can use the string values shown in the list. But why you try, it doesn't work:

      Unknown scope: wholeSubtree

      Instead you need to use sub, for example.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Mark Mark Craig
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: