Uploaded image for project: 'Directory Client API'
  1. Directory Client API
  2. DIRAPI-328

Fix inconsistency in Attribute and Value

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 3.0.0
    • None

    Description

      Inconsistent method names:

      • Attribute: getString() and getBytes()
      • Value: getValue() and getBytes()
      • Proposal: Rename Value.getValue() to Value.getString()

      Inconsistent and wrong documented error handling:

      • Attribute: getString() and getBytes() check for isHumanReadable and throw LdapInvalidAttributeValueException
      • Value: getValue()/getString() tries to UTF-8 encode bytes if not human readable, which doesn't work always, and javadoc says "returns null"
      • Value: getBytes() doesn't check if is human readable
      • Proposal: Make Value behave like Attribute, i.e. throw LdapInvalidAttributeValueException

      Opinions?

      Attachments

        Activity

          People

            elecharny Emmanuel Lécharny
            seelmann Stefan Seelmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: