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

Yahoo API credentials fails to map Merchant UUID to Yahoo Account

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Mercury
    • Fix Version/s: Mercury
    • Component/s: API
    • Labels:
      None
    • Environment:

      QA 7

      yahoo-japan-credentials-api-secure-1.0.1-RC1.war
      aml-distribution-service-war-1.0.1-RC1.war

    • Sprint:
      Sprint 24

      Description

      Steps:

      1.Create a merchant through merchant api

      2. Chose an account from thesearchEngineUsers which doesn’t have deployed account.

      mysql> SELECT * FROM tsacommon.searchEngineUsers WHERE description LIKE '%586818%';
      ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

      id accountID distributionID searchEngineIdentifier description username password enabled inTsaMcc apiKey managerUsernames managerIDs lastChecked lastInMcc

      ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

      12 0 178 8788522 precreated account 586818 cSzL8-Br63-N0zDn-3AEJ TSATrialYahoo55 false false   ?t?[?i??pMSC??pTSA?e?X?g2?j prepay NULL NULL

      ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
      1 row in set (0.00 sec)

      3.Send Yahoo Credentials API to map merchant to Yahoo Account ID
      (PFA)
      Resource :
      /yahooapi/yahoo-japan-credentials/f0ef77bd-6a30-4381-b185-c83ffeebcbee

      Body: {
      "onBehalfOfAccountId" : "cSzL8-Br63-N0zDn-3AEJ",
      "onBehalfOfPassword" : "TSATrialYahoo55",
      "accountId" : 586818
      }

      Actual Result: (Complete log attached)

      It is not mapping Yahoo Account ID - throws exception

      Snippet of tomcat log:
      Address: http://aml-qa7-front1:8081/distribution/rest/distributionSettings/merchant/f0ef77bd-6a30-4381-b185-c83ffeebcbee/distribution/c8bcf22f-7c61-4acb-a5e3-341ee8367129
      Http-Method: GET
      Content-Type: application/json
      Headers:

      {Accept=[application/json], Content-Type=[application/json], Authorization=[Basic cmVhZHdyaXRlOnJlYWR3cml0ZQ==]}

      --------------------------------------
      2016-05-09 13:03:16,207-715029 [http-8081-1] WARN org.apache.cxf.jaxrs.utils.JAXRSUtils - No operation matching request path "/distribution/rest/distributionSettings/merchant/f0ef77bd-6a30-4381-b185-c83ffeebcbee/distribution/c8bcf22f-7c61-4acb-a5e3-341ee8367129" is found, Relative Path: /merchant/f0ef77bd-6a30-4381-b185-c83ffeebcbee/distribution/c8bcf22f-7c61-4acb-a5e3-341ee8367129, HTTP Method: GET, ContentType: /, Accept: application/json,. Please enable FINE/TRACE log level for more details.
      2016-05-09 13:03:16,212-715034 [http-8081-1] WARN org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper - javax.ws.rs.ClientErrorException: HTTP 404 Not Found
      at org.apache.cxf.jaxrs.utils.SpecExceptions.toHttpException(SpecExceptions.java:117)
      at org.apache.cxf.jaxrs.utils.ExceptionUtils.toHttpException(ExceptionUtils.java:166)
      at org.apache.cxf.jaxrs.utils.JAXRSUtils.findTargetMethod(JAXRSUtils.java:528)
      at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:177)

        Attachments

        1. Mercury_YahooAPI.jpg
          60 kB
          Atul Sanagar
        2. Tomcat_Log.txt
          29 kB
          Atul Sanagar

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: