Uploaded image for project: 'AdMaxLocal'
  1. AdMaxLocal
  2. AML-3918

When creating a user the system attempts to connect to thesearchagency.<domain>

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Apollo
    • Fix Version/s: Apollo
    • Component/s: Other / Misc.
    • Labels:
      None
    • Environment:

      aml-oauth-provider-1.0.0-20160104.213138-90.war
      qos-service-1.0.0-20160104.213202-30.war

    • Sprint:
      Sprint 9, Sprint 10, Sprint 11, Sprint 12

      Description

      Unable to create new user for the realm other than thesearchagency, it throws exception!

      1.Create new realm say qa2 with admin user created in AML UI (atul.sanagar@thesearchagency.com)

      2.Log in to AML UI with atul.sanagar@thesearchagency.com

      3.Try to create new user for above qa 2.

      Actual Result:

      Not able to create new user.

      Tomcat log :

      an 4, 2016 4:01:34 PM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode
      WARNING: Could not lock System prefs. Unix error code 0.
      Jan 4, 2016 4:01:34 PM java.util.prefs.FileSystemPreferences syncWorld
      WARNING: Couldn't flush system prefs: java.util.prefs.BackingStoreException: Couldn't get file lock.
      2016-01-04 16:01:55 INFO org.apache.cxf.interceptor.LoggingInInterceptor:253 - atul.sanagar@thesearchagency.com REALM_thesearchagency, ROLE_ADMIN, ROLE_USER - Inbound Message
      ----------------------------
      ID: 25
      Address: ...

      Encoding: UTF-8
      Http-Method: POST
      Content-Type: application/json; charset=UTF-8
      Headers:

      {Accept=[application/json, text/javascript, */*; q=0.01], accept-encoding=[gzip, deflate], accept-language=[en-US,en;q=0.5], connection=[Keep-Alive], Content-Length=[93], content-type=[application/json; charset=UTF-8], cookie=[JSESSIONID=82C2F6E746916DCA3FC1CF5E6EA6BC1E], host=[localhost:9933], referer=[http://localhost:9933/aml-oauth-provider/], user-agent=[Mozilla/5.0 (Windows NT 6.3; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0], x-csrf-token=[6f69c76d-8b83-45d3-846b-93fa07b65ee2], x-forwarded-host=[localhost:9933], x-forwarded-server=[2001:4800:7811:513:dd9d:596:ff04:a1a7], x-requested-with=[XMLHttpRequest]}

      Payload:

      {"username":"tsa.amlproduct.qa@gmail.com","roles":["ROLE_USER"],"realm":"qa2","enabled":true}

      --------------------------------------
      2016-01-04 16:01:55 WARN org.apache.cxf.phase.PhaseInterceptorChain:452 - atul.sanagar@thesearchagency.com

      Note : This issue is fixed after updating hosts file :
      127.0.0.1 thesearchagency.localhost

      Expected Result:

      Admin user should create new users without having this new entry to hosts file.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                atul.sanagar Atul Sanagar (Inactive)
                Reporter:
                atul.sanagar Atul Sanagar (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: