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

Location Extn validations are not happening through External API

    Details

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

      deployment-api-secure-1.0.1-BETA1.war

      Description

      Location Extn validations are not happening in case of deployment, through External API

      Steps

      1. Create an merchant through API.
      2. Deploy an order with location extn (after removing mandatory field ) for the merchant through API .

      Expected :
      Order should not go for deployment

      Actual
      Order went for deployment , Exceptions observed in listener log .

      2016-04-25 16:16:17.284 (5) [P25T1]: ProfilerRec.start("db",true) in Thread [P25T1]
      2016-04-25 16:16:17.284 (4) [P25T1]: spike: SQL->[select `content_editor_google`.`gce_feedItem`.*,`content_editor_google`.`gce_feedItemPendingChange`.*,`content_editor_google`.`gce_feed`.`searchEngineIdentifier` AS `FEED_SE_ID_ALIAS`,`content_editor_google`.`gce_feedItemAttributeValue`.`id` AS `FEED_ITEM_ATTRIBUTE_VALUE_ID_ALIAS`,`content_editor_google`.`gce_feedItemAttributeValue`.`value`,`content_editor_google`.`gce_feedAttribute`.`searchEngineIdentifier` AS `FEED_ATTRIBUTE_SEID_ALIAS`,`content_editor_google`.`gce_feedAttribute`.`id` AS `FEED_ATTRIBUTE_ID_ALIAS`,`content_editor_google`.`gce_feedAttribute`.`type` AS `FEED_ATTRIBUTE_TYPE_ALIAS`,`content_editor_google`.`gce_feedAttribute`.`name` AS `FEED_ATTRIBUTE_NAME_ALIAS` from `content_editor_google`.`gce_feedItem` inner join `gce_feedItemPendingChange` on ((`content_editor_google`.`gce_feedItemPendingChange`.`feedItemID`=`content_editor_google`.`gce_feedItem`.`id`)) inner join `gce_feed` on ((`content_editor_google`.`gce_feed`.`id`=`content_editor_google`.`gce_feedItem`.`feedID`)) inner join `gce_feedItemAttributeValue` on ((`content_editor_google`.`gce_feedItemAttributeValue`.`feedItemID`=`content_editor_google`.`gce_feedItem`.`id`)) inner join `gce_feedAttribute` on ((`content_editor_google`.`gce_feedAttribute`.`id`=`content_editor_google`.`gce_feedItemAttributeValue`.`feedAttributeID`)) where ((`content_editor_google`.`gce_feed`.`searchEngineUserID`=310) and (((((`isFailed`="true") and (`tryCount`<10))) or ((`isFailed`="false")))) and (`gce_feedItemPendingChange`.`type`="add")) order by `content_editor_google`.`gce_feedItem`.`id`]
      2016-04-25 16:16:17.288 (5) [P25T1]: recordAsSubs("db", 4, "P25T1")
      2016-04-25 16:16:17.288 (5) [P25T1]: addSub("db")
      2016-04-25 16:16:17.288 (5) [P25T1]: ProfilerRec.end("db", true): ret=4
      2016-04-25 16:16:17.288 (4) [P25T1]: time=0.0040
      2016-04-25 16:16:17.289 (4) [P25T1]: Query executed in 0.004s
      2016-04-25 16:16:17.292 (3) [P25T1]: FeedItemChangeRequest (accountID 124): Sending 8 add requests
      2016-04-25 16:16:17.293 (1) [P25T1]: Exception [Invalid attribute value for accountID: 124]:java.lang.IllegalArgumentException: Attribute name (countryCode) has value null
      at com.thesearchagency.searchengines.google.contenteditor.changerequest.feed.FeedItemChangeRequest.setAttributeValue(FeedItemChangeRequest.java:165)
      at com.thesearchagency.searchengines.google.contenteditor.changerequest.feed.FeedItemChangeRequest.mapAttributeValues(FeedItemChangeRequest.java:135)
      at com.thesearchagency.searchengines.google.contenteditor.changerequest.feed.FeedItemChangeRequest.getFeedItems(FeedItemChangeRequest.java:86)
      at com.thesearchagency.searchengines.google.contenteditor.changerequest.feed.FeedItemChangeRequest.createRequest(FeedItemChangeRequest.java:37)
      at com.thesearchagency.searchengines.google.contenteditor.changerequest.feed.FeedItemChangeRequest.createRequest(FeedItemChangeRequest.java:26)
      at com.thesearchagency.searchengines.google.contenteditor.changerequest.BaseChangeRequest.makeRequest(BaseChangeRequest.java:94)
      at com.thesearchagency.searchengines.google.contenteditor.GoogleContentEditor$SearchEngineUserWorker.handleFeedItems(GoogleContentEditor.java:1204)
      at com.thesearchagency.searchengines.google.contenteditor.GoogleContentEditor$SearchEngineUserWorker.call(GoogleContentEditor.java:1028)
      at com.thesearchagency.searchengines.google.contenteditor.GoogleContentEditor$SearchEngineUserWorker.call(GoogleContentEditor.java:1002)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)

      2016-04-25 16:16:17.295 (5) [P25T1]: quoteValue(), nothing special about it=>[310], type=class java.lang.Integer

      Note :

      kindly find the attached screen shot .

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sanjaykumar.biswal Sanjay Kumar Biswal
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: