{"action":"closed","number":2863,"pull_request":{"url":"https://api.github.com/repos/mozilla/socorro/pulls/2863","id":38180962,"html_url":"https://github.com/mozilla/socorro/pull/2863","diff_url":"https://github.com/mozilla/socorro/pull/2863.diff","patch_url":"https://github.com/mozilla/socorro/pull/2863.patch","issue_url":"https://api.github.com/repos/mozilla/socorro/issues/2863","number":2863,"state":"closed","locked":false,"title":"fix bug 1176543 - collector should handle gzipped form posts","user":{"login":"rhelmer","id":61412,"avatar_url":"https://avatars.githubusercontent.com/u/61412?v=3","gravatar_id":"","url":"https://api.github.com/users/rhelmer","html_url":"https://github.com/rhelmer","followers_url":"https://api.github.com/users/rhelmer/followers","following_url":"https://api.github.com/users/rhelmer/following{/other_user}","gists_url":"https://api.github.com/users/rhelmer/gists{/gist_id}","starred_url":"https://api.github.com/users/rhelmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhelmer/subscriptions","organizations_url":"https://api.github.com/users/rhelmer/orgs","repos_url":"https://api.github.com/users/rhelmer/repos","events_url":"https://api.github.com/users/rhelmer/events{/privacy}","received_events_url":"https://api.github.com/users/rhelmer/received_events","type":"User","site_admin":false},"body":"r? @twobraids / @peterbe \r\n\r\nI am not sure that nginx will be able to handle gzipped HTTP POST as Apache did for us in the past, and we have at least Fennec clients out there sending these.\r\n\r\nUnfortunately I wasn't able to reuse the multipart form parser `web.py` uses since they don't expose it in a useful way AFAICT, it's basically just a wrapper around `cgi.FieldStorage` using the `web.utils.storage` class though.\r\n\r\nBesides the unit test, I have tried this on an EC2 instance with nginx+uwsgi, and it seems to work as expected with the client in https://gist.github.com/rhelmer/c9e3c861e3844d9cb142 (which you'll notice is very similar to the unit test)","created_at":"2015-06-21T08:18:20Z","updated_at":"2015-06-21T15:32:25Z","closed_at":"2015-06-21T15:32:25Z","merged_at":"2015-06-21T15:32:25Z","merge_commit_sha":"07d693c8e173124e56085bf7c9ea48e92ae4499b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/socorro/pulls/2863/commits","review_comments_url":"https://api.github.com/repos/mozilla/socorro/pulls/2863/comments","review_comment_url":"https://api.github.com/repos/mozilla/socorro/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/socorro/issues/2863/comments","statuses_url":"https://api.github.com/repos/mozilla/socorro/statuses/7f6e5430f851462f434f61376021b9dee29fd533","head":{"label":"rhelmer:bug1176543-collector-handle-gzipped-form-post","ref":"bug1176543-collector-handle-gzipped-form-post","sha":"7f6e5430f851462f434f61376021b9dee29fd533","user":{"login":"rhelmer","id":61412,"avatar_url":"https://avatars.githubusercontent.com/u/61412?v=3","gravatar_id":"","url":"https://api.github.com/users/rhelmer","html_url":"https://github.com/rhelmer","followers_url":"https://api.github.com/users/rhelmer/followers","following_url":"https://api.github.com/users/rhelmer/following{/other_user}","gists_url":"https://api.github.com/users/rhelmer/gists{/gist_id}","starred_url":"https://api.github.com/users/rhelmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhelmer/subscriptions","organizations_url":"https://api.github.com/users/rhelmer/orgs","repos_url":"https://api.github.com/users/rhelmer/repos","events_url":"https://api.github.com/users/rhelmer/events{/privacy}","received_events_url":"https://api.github.com/users/rhelmer/received_events","type":"User","site_admin":false},"repo":{"id":4216256,"name":"socorro","full_name":"rhelmer/socorro","owner":{"login":"rhelmer","id":61412,"avatar_url":"https://avatars.githubusercontent.com/u/61412?v=3","gravatar_id":"","url":"https://api.github.com/users/rhelmer","html_url":"https://github.com/rhelmer","followers_url":"https://api.github.com/users/rhelmer/followers","following_url":"https://api.github.com/users/rhelmer/following{/other_user}","gists_url":"https://api.github.com/users/rhelmer/gists{/gist_id}","starred_url":"https://api.github.com/users/rhelmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhelmer/subscriptions","organizations_url":"https://api.github.com/users/rhelmer/orgs","repos_url":"https://api.github.com/users/rhelmer/repos","events_url":"https://api.github.com/users/rhelmer/events{/privacy}","received_events_url":"https://api.github.com/users/rhelmer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rhelmer/socorro","description":"Socorro is a server to accept and process Breakpad crash reports. ","fork":true,"url":"https://api.github.com/repos/rhelmer/socorro","forks_url":"https://api.github.com/repos/rhelmer/socorro/forks","keys_url":"https://api.github.com/repos/rhelmer/socorro/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rhelmer/socorro/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rhelmer/socorro/teams","hooks_url":"https://api.github.com/repos/rhelmer/socorro/hooks","issue_events_url":"https://api.github.com/repos/rhelmer/socorro/issues/events{/number}","events_url":"https://api.github.com/repos/rhelmer/socorro/events","assignees_url":"https://api.github.com/repos/rhelmer/socorro/assignees{/user}","branches_url":"https://api.github.com/repos/rhelmer/socorro/branches{/branch}","tags_url":"https://api.github.com/repos/rhelmer/socorro/tags","blobs_url":"https://api.github.com/repos/rhelmer/socorro/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rhelmer/socorro/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rhelmer/socorro/git/refs{/sha}","trees_url":"https://api.github.com/repos/rhelmer/socorro/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rhelmer/socorro/statuses/{sha}","languages_url":"https://api.github.com/repos/rhelmer/socorro/languages","stargazers_url":"https://api.github.com/repos/rhelmer/socorro/stargazers","contributors_url":"https://api.github.com/repos/rhelmer/socorro/contributors","subscribers_url":"https://api.github.com/repos/rhelmer/socorro/subscribers","subscription_url":"https://api.github.com/repos/rhelmer/socorro/subscription","commits_url":"https://api.github.com/repos/rhelmer/socorro/commits{/sha}","git_commits_url":"https://api.github.com/repos/rhelmer/socorro/git/commits{/sha}","comments_url":"https://api.github.com/repos/rhelmer/socorro/comments{/number}","issue_comment_url":"https://api.github.com/repos/rhelmer/socorro/issues/comments{/number}","contents_url":"https://api.github.com/repos/rhelmer/socorro/contents/{+path}","compare_url":"https://api.github.com/repos/rhelmer/socorro/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rhelmer/socorro/merges","archive_url":"https://api.github.com/repos/rhelmer/socorro/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rhelmer/socorro/downloads","issues_url":"https://api.github.com/repos/rhelmer/socorro/issues{/number}","pulls_url":"https://api.github.com/repos/rhelmer/socorro/pulls{/number}","milestones_url":"https://api.github.com/repos/rhelmer/socorro/milestones{/number}","notifications_url":"https://api.github.com/repos/rhelmer/socorro/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rhelmer/socorro/labels{/name}","releases_url":"https://api.github.com/repos/rhelmer/socorro/releases{/id}","created_at":"2012-05-03T16:46:07Z","updated_at":"2015-04-30T19:04:16Z","pushed_at":"2015-06-21T15:23:39Z","git_url":"git://github.com/rhelmer/socorro.git","ssh_url":"git@github.com:rhelmer/socorro.git","clone_url":"https://github.com/rhelmer/socorro.git","svn_url":"https://github.com/rhelmer/socorro","homepage":"https://wiki.mozilla.org/Socorro","size":238112,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"56f28c4df9ac38a1afbcb5c5079709cb95d49ace","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":2263742,"name":"socorro","full_name":"mozilla/socorro","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/socorro","description":"Socorro is a server to accept and process Breakpad crash reports. ","fork":false,"url":"https://api.github.com/repos/mozilla/socorro","forks_url":"https://api.github.com/repos/mozilla/socorro/forks","keys_url":"https://api.github.com/repos/mozilla/socorro/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/socorro/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/socorro/teams","hooks_url":"https://api.github.com/repos/mozilla/socorro/hooks","issue_events_url":"https://api.github.com/repos/mozilla/socorro/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/socorro/events","assignees_url":"https://api.github.com/repos/mozilla/socorro/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/socorro/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/socorro/tags","blobs_url":"https://api.github.com/repos/mozilla/socorro/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/socorro/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/socorro/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/socorro/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/socorro/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/socorro/languages","stargazers_url":"https://api.github.com/repos/mozilla/socorro/stargazers","contributors_url":"https://api.github.com/repos/mozilla/socorro/contributors","subscribers_url":"https://api.github.com/repos/mozilla/socorro/subscribers","subscription_url":"https://api.github.com/repos/mozilla/socorro/subscription","commits_url":"https://api.github.com/repos/mozilla/socorro/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/socorro/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/socorro/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/socorro/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/socorro/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/socorro/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/socorro/merges","archive_url":"https://api.github.com/repos/mozilla/socorro/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/socorro/downloads","issues_url":"https://api.github.com/repos/mozilla/socorro/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/socorro/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/socorro/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/socorro/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/socorro/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/socorro/releases{/id}","created_at":"2011-08-24T19:21:49Z","updated_at":"2015-06-13T07:35:28Z","pushed_at":"2015-06-21T15:32:25Z","git_url":"git://github.com/mozilla/socorro.git","ssh_url":"git@github.com:mozilla/socorro.git","clone_url":"https://github.com/mozilla/socorro.git","svn_url":"https://github.com/mozilla/socorro","homepage":"https://wiki.mozilla.org/Socorro","size":191277,"stargazers_count":229,"watchers_count":229,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":121,"mirror_url":null,"open_issues_count":5,"forks":121,"open_issues":5,"watchers":229,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/socorro/pulls/2863"},"html":{"href":"https://github.com/mozilla/socorro/pull/2863"},"issue":{"href":"https://api.github.com/repos/mozilla/socorro/issues/2863"},"comments":{"href":"https://api.github.com/repos/mozilla/socorro/issues/2863/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/socorro/pulls/2863/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/socorro/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/socorro/pulls/2863/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/socorro/statuses/7f6e5430f851462f434f61376021b9dee29fd533"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"rhelmer","id":61412,"avatar_url":"https://avatars.githubusercontent.com/u/61412?v=3","gravatar_id":"","url":"https://api.github.com/users/rhelmer","html_url":"https://github.com/rhelmer","followers_url":"https://api.github.com/users/rhelmer/followers","following_url":"https://api.github.com/users/rhelmer/following{/other_user}","gists_url":"https://api.github.com/users/rhelmer/gists{/gist_id}","starred_url":"https://api.github.com/users/rhelmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhelmer/subscriptions","organizations_url":"https://api.github.com/users/rhelmer/orgs","repos_url":"https://api.github.com/users/rhelmer/repos","events_url":"https://api.github.com/users/rhelmer/events{/privacy}","received_events_url":"https://api.github.com/users/rhelmer/received_events","type":"User","site_admin":false},"comments":2,"review_comments":2,"commits":2,"additions":137,"deletions":6,"changed_files":2}}