Directory ApacheDS
  1. Directory ApacheDS
  2. DIRSERVER-1055

Reading cn=schema doesn't return all requested attributes

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.1
    • Fix Version/s: 1.5.2
    • Component/s: None
    • Labels:
      None

      Description

      When performing the following search the attributes createTimestamp and modifyTimestamp are not in the search result, although requested:

      $ ldapsearch -x -h localhost -p 10389 -D "uid=admin,ou=system" -w "secret" -b "cn=schema" -s base "(objectClass=subschema)" objectClasses attributeTypes ldapSyntaxes matchingRules matchingRuleUse createTimestamp modifyTimestamp | grep "modifyTimestamp:"

      However when performing this search the modifyTimestamp is returned. Note the additonal "+" in the list of returning attributes:

      $ ldapsearch -x -h localhost -p 10389 -D "uid=admin,ou=system" -w "secret" -b "cn=schema" -s base "(objectClass=subschema)" objectClasses attributeTypes ldapSyntaxes matchingRules matchingRuleUse createTimestamp modifyTimestamp "+" | grep "modifyTimestamp:"
      modifyTimestamp: 20070901074516Z

        Activity

        Hide
        Emmanuel Lecharny added a comment -

        We were not handling correctly the requested operational attributes, comparing their textual value to their OID counterpart in the selection of attributes to be returned.

        Show
        Emmanuel Lecharny added a comment - We were not handling correctly the requested operational attributes, comparing their textual value to their OID counterpart in the selection of attributes to be returned.
        Hide
        Emmanuel Lecharny added a comment -

        Ok, I have a fix for it. I have tested it, just waiting for the 1.5.1 released to be voted (around midnight, Paris time !)

        Show
        Emmanuel Lecharny added a comment - Ok, I have a fix for it. I have tested it, just waiting for the 1.5.1 released to be voted (around midnight, Paris time !)
        Hide
        Stefan Seelmann added a comment -

        Attached test.

        Show
        Stefan Seelmann added a comment - Attached test.
        Show
        Emmanuel Lecharny added a comment - Ok,fixed : http://svn.apache.org/viewvc?rev=572196&view=rev
        Hide
        Stefan Seelmann added a comment -

        Added the attached test and one more here: http://svn.apache.org/viewvc?rev=603755&view=rev

        Show
        Stefan Seelmann added a comment - Added the attached test and one more here: http://svn.apache.org/viewvc?rev=603755&view=rev

          People

          • Assignee:
            Emmanuel Lecharny
            Reporter:
            Stefan Seelmann
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development