Directory ApacheDS
  1. Directory ApacheDS
  2. DIRSERVER-1413

Key pair generation attempts to add duplicate objectClass values

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.5.4
    • Fix Version/s: 1.5.5
    • Component/s: core
    • Labels:
      None

      Description

      The TlsKeyGenerator.addKeyPair(ServerEntry) method adds objectClass values for 'tlsKeyInfo' and 'inetOrgPerson' without checking if they have already been added. This results in the ERROR level message "The value 'inetOrgPerson' is incorrect, it hasn't been added" being emitted from DefaultServerAttribute.add. In the case of the system administrator created by the DefaultDirectoryService, this error message always appears on the first load as the 'inetOrgPerson' value is explicitly added before calling addKeyPair. Replacing the objectClass.add(...) call with !objectClass.contains(...)/objectClass.add(...) would prevent this error message from appearing.

        Activity

        Jeremy Gustie made changes -
        Field Original Value New Value
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 1.5.5 [ 12313148 ]
        Resolution Cannot Reproduce [ 5 ]
        Jeremy Gustie created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Jeremy Gustie
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 5m
              5m
              Remaining:
              Remaining Estimate - 5m
              5m
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development