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

Retrieving pwdChangedTime over REST truncates the value when the last 3 digits end in 000

    Details

    • Type: Bug
    • Status: Done
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 6.5.1, 6.0.0
    • Fix Version/s: Not applicable
    • Component/s: None
    • Labels:
      None
    • Story Points:
      0
    • Support Ticket IDs:

      Description

      When requesting the pwdChangedTime over the REST interface values that end in 000 are truncated.  Example:

      $ curl --request GET --user user.0:password http://ds1.example.com:8080/api/users/user.0?_prettyPrint=true
      {
       "_id" : "user.0",
       "_rev" : "00000000e5d8e3f0",
       "_schema" : "frapi:opendj:rest2ldap:user:1.0",
       "_meta" : {
       "lastModified" : "2020-06-09T22:31:28Z"
       },
       "userName" : "user.0@example.com",
       "displayName" : [ "Aaccf Amar" ],
       "pwdChangedTime" : "2020-06-08T21:14:32Z",
       "name" : {
       "givenName" : "Aaccf",
       "familyName" : "Amar"
       },
       "description" : "This is the description for Aaccf Amar.",
       "contactInformation" : {
       "telephoneNumber" : "+1 685 622 6202",
       "emailAddress" : "user.0@example.com"
       }
      }
      

      ldapsearch results:

      $./ldapsearch --bindDN "cn=Directory Manager" --bindPassword password --baseDN dc=example,dc=com --port 1389 uid=user.0 pwdChangedTime
      dn: uid=user.0,ou=People,dc=example,dc=com
      pwdChangedTime: 20200608211432.000Z
      

      example-v1.json

        Attachments

          Activity

            People

            • Assignee:
              ludo Ludovic Poitou
              Reporter:
              tina.roper Tina Roper
              Dev Assignee:
              Ludovic Poitou
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: