{"action":"opened","issue":{"url":"https://api.github.com/repos/dojo/dojo/issues/318","repository_url":"https://api.github.com/repos/dojo/dojo","labels_url":"https://api.github.com/repos/dojo/dojo/issues/318/labels{/name}","comments_url":"https://api.github.com/repos/dojo/dojo/issues/318/comments","events_url":"https://api.github.com/repos/dojo/dojo/issues/318/events","html_url":"https://github.com/dojo/dojo/issues/318","id":358067833,"node_id":"MDU6SXNzdWUzNTgwNjc4MzM=","number":318,"title":"Dojo 1.13.1 breaks FormData submission (from 1.13.0)","user":{"login":"ehuelsmann","id":2326559,"node_id":"MDQ6VXNlcjIzMjY1NTk=","avatar_url":"https://avatars1.githubusercontent.com/u/2326559?v=4","gravatar_id":"","url":"https://api.github.com/users/ehuelsmann","html_url":"https://github.com/ehuelsmann","followers_url":"https://api.github.com/users/ehuelsmann/followers","following_url":"https://api.github.com/users/ehuelsmann/following{/other_user}","gists_url":"https://api.github.com/users/ehuelsmann/gists{/gist_id}","starred_url":"https://api.github.com/users/ehuelsmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehuelsmann/subscriptions","organizations_url":"https://api.github.com/users/ehuelsmann/orgs","repos_url":"https://api.github.com/users/ehuelsmann/repos","events_url":"https://api.github.com/users/ehuelsmann/events{/privacy}","received_events_url":"https://api.github.com/users/ehuelsmann/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-07T13:30:24Z","updated_at":"2018-09-07T13:30:24Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"In ledgersmb/LedgerSMB#3799 a problem is being reported due to our project upgrading the included (built) Dojo from 1.13.0 to 1.13.1. The problem lies in code which - when flattened and stripped - looks like this:\r\n\r\n```js\r\n                     options[\"data\"] = new FormData(this.domNode);\r\n                     // FF doesn't add the clicked button\r\n                    options[\"data\"].append('action',\r\n                                         this.clickedAction);\r\n                      return xhr(url, options).then(\r\n                          function(doc){\r\n                              self.hide_main_div();\r\n                              self.set_main_div(doc);\r\n                          },\r\n                          function(err){\r\n                              self.show_main_div();\r\n                              self.report_request_error(err);\r\n                          });\r\n```\r\n\r\nwhere `xhr` is required as `dojo/request/xhr`.\r\n\r\nInstead of posting the content of 'FormData`, the actual content being posted is `[object Object]`."}}
{"actor":{"display_login":"ehuelsmann"}}