Uploaded image for project: 'Directory ApacheDS'
  1. Directory ApacheDS
  2. DIRSERVER-1612

Wrong attribute name comparision in the testReplaceCaseOfAttributeDescription() of ModifyReplaceIT

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0-M1
    • None
    • None

    Description

      The testReplaceCaseOfAttributeDescription() method is expecting the attribute's ID/name to be normalized but the user provided name should be preserved as it is.

      For the record:

      This issue was exposed while trying to fix the ServerEntryUtils.toServerModification() method to use EntryAttribute's getUpId() instead of getId() method.

      The EntryAttribute.getId() method was recently updated to return the OID of the attribute so when a modify operation goes through Coresession's
      modify( ModifyRequest modifyRequest ) or modify( ModifyRequest modifyRequest, LogChange log ) the ServerEntryUtils.toServerModification() method gets called
      which is replacing 'upId' with 'Id' hence the entry will display OID of attribute instead of it's name.

      Attachments

        Activity

          People

            akiran Kiran Ayyagari
            akiran Kiran Ayyagari
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: