Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-12062

XUI DashBoard does not show trusted devices etc if user search attribute of the data store is not 'uid'

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 13.5.0, 13.5.1, 14.0.0, 14.1.0, 14.1.1, 14.5.0, 14.5.1
    • Fix Version/s: 13.5.3, 6.0.0, 14.1.2, 5.5.2
    • Component/s: XUI
    • Labels:
    • Environment:
       Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
      Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)

      Apache Tomcat 8

      AM 5.0.0
    • Target Version/s:
    • Sprint:
      AM Sustaining Sprint 45, AM Sustaining Sprint 46, AM Sustaining Sprint 47, AM Sustaining Sprint 48
    • Story Points:
      2
    • Needs backport:
      Yes
    • Support Ticket IDs:
    • Needs QA verification:
      Yes
    • Functional tests:
      No
    • Are the reproduction steps defined?:
      Yes and I used the same an in the description

      Description

      Bug description

      Dashboard does not show trusted devices etc

      How to reproduce the issue

      1. Configured AM 5.0.0 with embedded configuration data store and user data store
      2. configure user data store to use
        "sun-idrepo-ldapv3-config-auth-naming-attr" : "mail"
        "sun-idrepo-ldapv3-config-users-search-attribute" : "mail"
      3. set up auth-chain with data store, HOTP and device print/save
      4. setup an SMTP server to get onetimepassword via email
      5. set email address for 'demo' user
      6. perform service-based auth with this chain and user 'demo'
      7. click on dashboard
      Expected behaviour
      Dashboard should show trusted devices
      
      Current behaviour
      Trusted devices etc are not shown due to failing AJAX calls
      
      excerpt from failing XHR calls
                "method": "GET",
                "url": "http://am500.test.xyz:8080/openam/json/realms/root/users/demo/devices/trusted/?_queryId=*",
      ....
              "response": {
                "status": 500,
                "statusText": "Internal Server Error",
      

      Work around

      Patch the JavaScript files

      • DeviceManagementService.js
      • PushDeviceService.js
      • TrustedDevicesService.js

      to retrieve "username" instead of "uid" from the loggedUser object

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lawrence.yarham Lawrence Yarham
                Reporter:
                bthalmayr Bernhard Thalmayr
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: