<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>176478</bug_id>
          
          <creation_ts>2017-09-06 15:57:11 -0700</creation_ts>
          <short_desc>bisect-builds started failing with invalid json</short_desc>
          <delta_ts>2018-01-15 12:51:12 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lucas Forschler">lforschler</reporter>
          <assigned_to name="Lucas Forschler">lforschler</assigned_to>
          <cc>aakash_jain</cc>
    
    <cc>ap</cc>
    
    <cc>lforschler</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1346130</commentid>
    <comment_count>0</comment_count>
    <who name="Lucas Forschler">lforschler</who>
    <bug_when>2017-09-06 15:57:11 -0700</bug_when>
    <thetext>the json retrieval portion of the API gateway recently started returning invalid json.
After doing some google searching, it turns out they limit it to 1000 &apos;things&apos; returned. This breaks our use case.

https://forums.aws.amazon.com/thread.jspa?messageID=702451&amp;#702451</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1346131</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2017-09-06 15:57:38 -0700</bug_when>
    <thetext>&lt;rdar://problem/34293921&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1346139</commentid>
    <comment_count>2</comment_count>
    <who name="Lucas Forschler">lforschler</who>
    <bug_when>2017-09-06 16:20:24 -0700</bug_when>
    <thetext>Apparently this has recently been documented here:
http://docs.aws.amazon.com/apigateway/latest/developerguide/limits.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1346173</commentid>
    <comment_count>3</comment_count>
    <who name="Lucas Forschler">lforschler</who>
    <bug_when>2017-09-06 17:32:39 -0700</bug_when>
    <thetext>I have a fix that I&apos;m iterating on now... basically we need to avoid using the foreach loop in the AWS body mapping template. Instead, I can just pass along the raw JSON without mapping it to a new output format.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1346406</commentid>
    <comment_count>4</comment_count>
      <attachid>320135</attachid>
    <who name="Lucas Forschler">lforschler</who>
    <bug_when>2017-09-07 10:46:45 -0700</bug_when>
    <thetext>Created attachment 320135
Update the json parsing implementation</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1346410</commentid>
    <comment_count>5</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2017-09-07 10:49:28 -0700</bug_when>
    <thetext>rs=me assuming it is tested properly.

It would be good to mention the links to AWS rest API v2 either in ChangeLog or in comments here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1346419</commentid>
    <comment_count>6</comment_count>
    <who name="Lucas Forschler">lforschler</who>
    <bug_when>2017-09-07 10:55:15 -0700</bug_when>
    <thetext>Note, I have bumped our REST API implementation from v1 to v2. This is to avoid breaking anything currently relying on v1. Note, there is nothing else currently using this tool at the moment, but this should be done moving forward as a good engineering practice.


old: REST_API_URL = &apos;https://q1tzqfy48e.execute-api.us-west-2.amazonaws.com/v1/&apos;
new: REST_API_URL = &apos;https://q1tzqfy48e.execute-api.us-west-2.amazonaws.com/v2/&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1346422</commentid>
    <comment_count>7</comment_count>
    <who name="Lucas Forschler">lforschler</who>
    <bug_when>2017-09-07 10:56:43 -0700</bug_when>
    <thetext>Committed revision 221741.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>320135</attachid>
            <date>2017-09-07 10:46:45 -0700</date>
            <delta_ts>2018-01-15 12:51:12 -0800</delta_ts>
            <desc>Update the json parsing implementation</desc>
            <filename>176478.patch</filename>
            <type>text/plain</type>
            <size>1842</size>
            <attacher name="Lucas Forschler">lforschler</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDIyMTczOSkKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDE5IEBACisyMDE3LTA5LTA3ICBMdWNhcyBGb3JzY2hsZXIgIDxsZm9yc2NobGVyQGFwcGxl
LmNvbT4KKworICAgICAgICBiaXNlY3QtYnVpbGRzIHN0YXJ0ZWQgZmFpbGluZyB3aXRoIGludmFs
aWQganNvbgorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9
MTc2NDc4CisgICAgICAgIAorICAgICAgICBPbmNlIHdlIGhpdCAxMDAwIGl0ZW1zIGluIG91ciBk
eW5hbW9EQiwgd2UgcmFuIGludG8gYW4gdXBwZXIgbGltaXQgb24gdGhlIEFXUyBBUEkgR2F0ZXdh
eSBsb29waW5nIG1lY2hhbmlzbS4gCisgICAgICAgIFRoaXMgcHJldmVudGVkIHVzIGZyb20gZG9p
bmcgYSBib2R5IG1hcHBpbmcgdGVtcGxhdGUgdG8gcmV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VJMID0gJ2h0
dHBzOi8vcTF0enFmeTQ4ZS5leGVjdXRlLWFwaS51cy13ZXN0LTIuYW1hem9uYXdzLmNvbS92Mi8n
CiBSRVNUX0FQSV9FTkRQT0lOVCA9ICdhcmNoaXZlcy8nCiBSRVNUX0FQSV9NSU5JRklFRF9FTkRQ
T0lOVCA9ICdtaW5pZmllZC1hcmNoaXZlcy8nCiAKQEAgLTEyMCw3ICsxMjAsNyBAQCBkZWYgZ2V0
X2luZGljZXNfZnJvbV9yZXZpc2lvbnMocmV2aXNpb25fCiAKIAogZGVmIGdldF9zb3J0ZWRfcmV2
aXNpb25zKHJldmlzaW9uc19kaWN0KToKLSAgICByZXZpc2lvbnMgPSBbaW50KHJldmlzaW9uWydy
ZXZpc2lvbiddKSBmb3IgcmV2aXNpb24gaW4gcmV2aXNpb25zX2RpY3RbJ3JldmlzaW9ucyddXQor
ICAgIHJldmlzaW9ucyA9IFtpbnQoaXRlbVsncmV2aXNpb24nXVsnTiddKSBmb3IgaXRlbSBpbiBy
ZXZpc2lvbnNfZGljdFsncmV2aXNpb25zJ11bJ0l0ZW1zJ11dCiAgICAgcmV0dXJuIHNvcnRlZChy
ZXZpc2lvbnMpCiAgICAgCiAK
</data>
<flag name="commit-queue"
          id="340283"
          type_id="3"
          status="-"
          setter="lforschler"
    />
          </attachment>
      

    </bug>

</bugzilla>