Last modified: 2014-01-24 16:05:07 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T61660, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 59660 - VisualEditor: Use multipart/form-data encoding when POSTing HTML
VisualEditor: Use multipart/form-data encoding when POSTing HTML
Status: RESOLVED FIXED
Product: VisualEditor
Classification: Unclassified
MediaWiki integration (Other open bugs)
unspecified
All All
: Normal enhancement
: VE-deploy-2014-01-16
Assigned To: Roan Kattouw
: performance
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-05 03:14 UTC by Roan Kattouw
Modified: 2014-01-24 16:05 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Roan Kattouw 2014-01-05 03:14:54 UTC
Per Gabriel's report via email, when VE POSTs HTML, it uses multipart/x-www-urlencoded to encode the POST body, which results in a lot of URL-encoding of special characters (especially <>") in the HTML. We should instead use multipart/form-data , which is more efficient for such large POST bodies with many special characters.

TODO: Figure out how to tell the browser to use this encoding when sending an AJAX request.
Comment 1 Gerrit Notification Bot 2014-01-05 05:54:00 UTC
Change 105486 had a related patch set uploaded by Catrope:
Add multipart/form-data emulation to ve.init.mw.Target#ajax

https://gerrit.wikimedia.org/r/105486
Comment 2 Gerrit Notification Bot 2014-01-15 22:28:30 UTC
Change 105486 merged by jenkins-bot:
Add multipart/form-data emulation to ve.init.mw.Target#apiRequest

https://gerrit.wikimedia.org/r/105486

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links