{"action":"opened","number":188,"pull_request":{"url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/pulls/188","id":51272617,"html_url":"https://github.com/boundlessgeo/suite-qgis-plugin/pull/188","diff_url":"https://github.com/boundlessgeo/suite-qgis-plugin/pull/188.diff","patch_url":"https://github.com/boundlessgeo/suite-qgis-plugin/pull/188.patch","issue_url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/issues/188","number":188,"state":"open","locked":false,"title":"Fix for \"error publishing edits back to GeoServer\" issue","user":{"login":"ndkv","id":778666,"avatar_url":"https://avatars.githubusercontent.com/u/778666?v=3","gravatar_id":"","url":"https://api.github.com/users/ndkv","html_url":"https://github.com/ndkv","followers_url":"https://api.github.com/users/ndkv/followers","following_url":"https://api.github.com/users/ndkv/following{/other_user}","gists_url":"https://api.github.com/users/ndkv/gists{/gist_id}","starred_url":"https://api.github.com/users/ndkv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndkv/subscriptions","organizations_url":"https://api.github.com/users/ndkv/orgs","repos_url":"https://api.github.com/users/ndkv/repos","events_url":"https://api.github.com/users/ndkv/events{/privacy}","received_events_url":"https://api.github.com/users/ndkv/received_events","type":"User","site_admin":false},"body":"I think I found what causes #136. It turns out that QGIS sends a `POST` `GetFeature` request when publishing edits on a layer that's been loaded through the plugin. See this mitmproxy screenshot below (request is at the top).\r\n\r\n![screenshot 2015-11-19 20 13 44](https://cloud.githubusercontent.com/assets/778666/11281979/5250392e-8efd-11e5-90e3-a12825acbc8b.png)\r\n\r\nThis is of course very weird. Comparing it to the request that QGIS' \"native\" WFS sends I noticed that the latter capitalizes the query parameters whereas the former doesn't.\r\n\r\nAfter capitalizing the parameters in `uri.py` QGIS send a correct `POST` request and the transaction succeeds, see below.\r\n\r\n![screenshot 2015-11-19 20 22 32](https://cloud.githubusercontent.com/assets/778666/11282056/a74aceda-8efd-11e5-9392-51bbba5210a4.png)\r\n\r\nI tested this on four machines (2 x Win, 2 x OS X) and different QGIS verions and it worked on all of them.","created_at":"2015-11-19T19:59:41Z","updated_at":"2015-11-19T19:59:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/pulls/188/commits","review_comments_url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/pulls/188/comments","review_comment_url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/issues/188/comments","statuses_url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/statuses/cab069e21411f101d89598c6cb66cdead155956c","head":{"label":"ndkv:master","ref":"master","sha":"cab069e21411f101d89598c6cb66cdead155956c","user":{"login":"ndkv","id":778666,"avatar_url":"https://avatars.githubusercontent.com/u/778666?v=3","gravatar_id":"","url":"https://api.github.com/users/ndkv","html_url":"https://github.com/ndkv","followers_url":"https://api.github.com/users/ndkv/followers","following_url":"https://api.github.com/users/ndkv/following{/other_user}","gists_url":"https://api.github.com/users/ndkv/gists{/gist_id}","starred_url":"https://api.github.com/users/ndkv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndkv/subscriptions","organizations_url":"https://api.github.com/users/ndkv/orgs","repos_url":"https://api.github.com/users/ndkv/repos","events_url":"https://api.github.com/users/ndkv/events{/privacy}","received_events_url":"https://api.github.com/users/ndkv/received_events","type":"User","site_admin":false},"repo":{"id":44915340,"name":"suite-qgis-plugin","full_name":"ndkv/suite-qgis-plugin","owner":{"login":"ndkv","id":778666,"avatar_url":"https://avatars.githubusercontent.com/u/778666?v=3","gravatar_id":"","url":"https://api.github.com/users/ndkv","html_url":"https://github.com/ndkv","followers_url":"https://api.github.com/users/ndkv/followers","following_url":"https://api.github.com/users/ndkv/following{/other_user}","gists_url":"https://api.github.com/users/ndkv/gists{/gist_id}","starred_url":"https://api.github.com/users/ndkv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndkv/subscriptions","organizations_url":"https://api.github.com/users/ndkv/orgs","repos_url":"https://api.github.com/users/ndkv/repos","events_url":"https://api.github.com/users/ndkv/events{/privacy}","received_events_url":"https://api.github.com/users/ndkv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ndkv/suite-qgis-plugin","description":"","fork":true,"url":"https://api.github.com/repos/ndkv/suite-qgis-plugin","forks_url":"https://api.github.com/repos/ndkv/suite-qgis-plugin/forks","keys_url":"https://api.github.com/repos/ndkv/suite-qgis-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ndkv/suite-qgis-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ndkv/suite-qgis-plugin/teams","hooks_url":"https://api.github.com/repos/ndkv/suite-qgis-plugin/hooks","issue_events_url":"https://api.github.com/repos/ndkv/suite-qgis-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/ndkv/suite-qgis-plugin/events","assignees_url":"https://api.github.com/repos/ndkv/suite-qgis-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/ndkv/suite-qgis-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/ndkv/suite-qgis-plugin/tags","blobs_url":"https://api.github.com/repos/ndkv/suite-qgis-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ndkv/suite-qgis-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ndkv/suite-qgis-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/ndkv/suite-qgis-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ndkv/suite-qgis-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/ndkv/suite-qgis-plugin/languages","stargazers_url":"https://api.github.com/repos/ndkv/suite-qgis-plugin/stargazers","contributors_url":"https://api.github.com/repos/ndkv/suite-qgis-plugin/contributors","subscribers_url":"https://api.github.com/repos/ndkv/suite-qgis-plugin/subscribers","subscription_url":"https://api.github.com/repos/ndkv/suite-qgis-plugin/subscription","commits_url":"https://api.github.com/repos/ndkv/suite-qgis-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/ndkv/suite-qgis-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/ndkv/suite-qgis-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/ndkv/suite-qgis-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/ndkv/suite-qgis-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/ndkv/suite-qgis-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ndkv/suite-qgis-plugin/merges","archive_url":"https://api.github.com/repos/ndkv/suite-qgis-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ndkv/suite-qgis-plugin/downloads","issues_url":"https://api.github.com/repos/ndkv/suite-qgis-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/ndkv/suite-qgis-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/ndkv/suite-qgis-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/ndkv/suite-qgis-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ndkv/suite-qgis-plugin/labels{/name}","releases_url":"https://api.github.com/repos/ndkv/suite-qgis-plugin/releases{/id}","created_at":"2015-10-25T15:15:38Z","updated_at":"2015-10-25T15:15:40Z","pushed_at":"2015-11-19T19:28:09Z","git_url":"git://github.com/ndkv/suite-qgis-plugin.git","ssh_url":"git@github.com:ndkv/suite-qgis-plugin.git","clone_url":"https://github.com/ndkv/suite-qgis-plugin.git","svn_url":"https://github.com/ndkv/suite-qgis-plugin","homepage":null,"size":11986,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"boundlessgeo:master","ref":"master","sha":"c81734621838712904e9186e6b2755900dc52984","user":{"login":"boundlessgeo","id":306022,"avatar_url":"https://avatars.githubusercontent.com/u/306022?v=3","gravatar_id":"","url":"https://api.github.com/users/boundlessgeo","html_url":"https://github.com/boundlessgeo","followers_url":"https://api.github.com/users/boundlessgeo/followers","following_url":"https://api.github.com/users/boundlessgeo/following{/other_user}","gists_url":"https://api.github.com/users/boundlessgeo/gists{/gist_id}","starred_url":"https://api.github.com/users/boundlessgeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boundlessgeo/subscriptions","organizations_url":"https://api.github.com/users/boundlessgeo/orgs","repos_url":"https://api.github.com/users/boundlessgeo/repos","events_url":"https://api.github.com/users/boundlessgeo/events{/privacy}","received_events_url":"https://api.github.com/users/boundlessgeo/received_events","type":"Organization","site_admin":false},"repo":{"id":11171434,"name":"suite-qgis-plugin","full_name":"boundlessgeo/suite-qgis-plugin","owner":{"login":"boundlessgeo","id":306022,"avatar_url":"https://avatars.githubusercontent.com/u/306022?v=3","gravatar_id":"","url":"https://api.github.com/users/boundlessgeo","html_url":"https://github.com/boundlessgeo","followers_url":"https://api.github.com/users/boundlessgeo/followers","following_url":"https://api.github.com/users/boundlessgeo/following{/other_user}","gists_url":"https://api.github.com/users/boundlessgeo/gists{/gist_id}","starred_url":"https://api.github.com/users/boundlessgeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boundlessgeo/subscriptions","organizations_url":"https://api.github.com/users/boundlessgeo/orgs","repos_url":"https://api.github.com/users/boundlessgeo/repos","events_url":"https://api.github.com/users/boundlessgeo/events{/privacy}","received_events_url":"https://api.github.com/users/boundlessgeo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/boundlessgeo/suite-qgis-plugin","description":"","fork":false,"url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin","forks_url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/forks","keys_url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/teams","hooks_url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/hooks","issue_events_url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/events","assignees_url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/tags","blobs_url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/languages","stargazers_url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/stargazers","contributors_url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/contributors","subscribers_url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/subscribers","subscription_url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/subscription","commits_url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/merges","archive_url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/downloads","issues_url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/labels{/name}","releases_url":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/releases{/id}","created_at":"2013-07-04T08:42:42Z","updated_at":"2015-07-20T10:07:51Z","pushed_at":"2015-11-19T19:59:41Z","git_url":"git://github.com/boundlessgeo/suite-qgis-plugin.git","ssh_url":"git@github.com:boundlessgeo/suite-qgis-plugin.git","clone_url":"https://github.com/boundlessgeo/suite-qgis-plugin.git","svn_url":"https://github.com/boundlessgeo/suite-qgis-plugin","homepage":null,"size":13093,"stargazers_count":22,"watchers_count":22,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":75,"forks":15,"open_issues":75,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/pulls/188"},"html":{"href":"https://github.com/boundlessgeo/suite-qgis-plugin/pull/188"},"issue":{"href":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/issues/188"},"comments":{"href":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/issues/188/comments"},"review_comments":{"href":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/pulls/188/comments"},"review_comment":{"href":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/pulls/188/commits"},"statuses":{"href":"https://api.github.com/repos/boundlessgeo/suite-qgis-plugin/statuses/cab069e21411f101d89598c6cb66cdead155956c"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":7,"deletions":7,"changed_files":1}}