mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-12 09:09:25 +00:00
5d1a67757a
Something is causing the 'ETag' headers produced by the "public" RESTBase (queried directly from the client) to be mangled or lost. My theory is that some proxy or browser extension is doing that. When we detect a bad etag when fetching the page contents, discard the result and try querying the "private" RESTBase via the MediaWiki API (similar to what we do on private wikis, except there we talk directly to Parsoid instead of RESTBase). After I463a84de63, that returns the etag as part of the payload rather than HTTP headers, and should pass unharmed through whatever is mangling the data. Also compare and log the two etags. Bug: T233320 Change-Id: I2ef0ca872597566f74b650aea71bf3f15747a6d7
70 lines
4.7 KiB
JSON
70 lines
4.7 KiB
JSON
{
|
|
"@metadata": {
|
|
"authors": [
|
|
"Alex Monk",
|
|
"Amir E. Aharoni",
|
|
"Anomie",
|
|
"Christian Williams",
|
|
"David Lynch",
|
|
"Ed Sanders",
|
|
"Erik Moeller",
|
|
"James D. Forrester",
|
|
"lokal-profil",
|
|
"Moriel Schottlender",
|
|
"Raimond Spekking",
|
|
"Roan Kattouw",
|
|
"Rob Moen",
|
|
"Siebrand Mazeland",
|
|
"Timo Tijhof",
|
|
"Trevor Parscal",
|
|
"Umherirrender",
|
|
"Yuki Shira"
|
|
]
|
|
},
|
|
"apierror-visualeditor-badcachekey": "No cached serialization found with that key",
|
|
"apierror-visualeditor-difffailed": "Diff failed",
|
|
"apierror-visualeditor-docserver-http-error": "$1",
|
|
"apierror-visualeditor-docserver-http": "HTTP $1",
|
|
"apierror-visualeditor-docserver-unconfigured": "The VirtualRESTService for the document server is not defined; see https://www.mediawiki.org/wiki/Extension:VisualEditor",
|
|
"apierror-visualeditor-docserver": "Error contacting the Parsoid/RESTbase server",
|
|
"apierror-visualeditor-latestnotfound": "Could not find latest revision for title",
|
|
"apihelp-visualeditor-description": "Returns HTML5 for a page from the Parsoid service.",
|
|
"apihelp-visualeditor-param-basetimestamp": "When saving, set this to the timestamp of the revision that was edited. Used to detect edit conflicts.",
|
|
"apihelp-visualeditor-param-badetag": "If RESTBase query returned a seemingly invalid ETag, pass it here for logging purposes.",
|
|
"apihelp-visualeditor-param-cachekey": "For serialize or diff, use the result of a previous serializeforcache request with this key. Overrides $1html.",
|
|
"apihelp-visualeditor-param-editintro": "Edit intro to add to notices.",
|
|
"apihelp-visualeditor-param-etag": "ETag to send.",
|
|
"apihelp-visualeditor-param-format": "The format of the output.",
|
|
"apihelp-visualeditor-param-html": "HTML to send to Parsoid to convert to wikitext.",
|
|
"apihelp-visualeditor-param-oldid": "The revision number to use (defaults to latest revision).",
|
|
"apihelp-visualeditor-param-paction": "Action to perform.",
|
|
"apihelp-visualeditor-param-page": "The page to perform actions on.",
|
|
"apihelp-visualeditor-param-preload": "The page to use content from if the fetched page has no content yet.",
|
|
"apihelp-visualeditor-param-preloadparams": "Parameters to substitute into the preload page, if present.",
|
|
"apihelp-visualeditor-param-pst": "Pre-save transform wikitext before sending it to Parsoid (paction=parsefragment).",
|
|
"apihelp-visualeditor-param-section": "The section on which to act.",
|
|
"apihelp-visualeditor-param-starttimestamp": "When saving, set this to the timestamp of when the page was loaded. Used to detect edit conflicts.",
|
|
"apihelp-visualeditor-param-stash": "When saving, set this true if you want to use the stashing API.",
|
|
"apihelp-visualeditor-param-wikitext": "Wikitext to send to Parsoid to convert to HTML (paction=parsefragment).",
|
|
"apihelp-visualeditor-summary": "Returns HTML5 for a page from the Parsoid service.",
|
|
"apihelp-visualeditoredit-description": "Save an HTML5 page to MediaWiki (converted to wikitext via the Parsoid service).",
|
|
"apihelp-visualeditoredit-param-basetimestamp": "When saving, set this to the timestamp of the revision that was edited. Used to detect edit conflicts.",
|
|
"apihelp-visualeditoredit-param-cachekey": "Use the result of a previous serializeforcache request with this key. Overrides $1html.",
|
|
"apihelp-visualeditoredit-param-captchaid": "Captcha ID (when saving with a captcha response).",
|
|
"apihelp-visualeditoredit-param-captchaword": "Answer to the captcha (when saving with a captcha response).",
|
|
"apihelp-visualeditoredit-param-etag": "ETag to send.",
|
|
"apihelp-visualeditoredit-param-html": "HTML to send to Parsoid in exchange for wikitext.",
|
|
"apihelp-visualeditoredit-param-minor": "Flag for minor edit.",
|
|
"apihelp-visualeditoredit-param-needcheck": "When saving, set this parameter if the revision might have roundtrip problems. This will result in the edit being tagged.",
|
|
"apihelp-visualeditoredit-param-oldid": "The revision number to use. Defaults to latest revision. Use 0 for a new page.",
|
|
"apihelp-visualeditoredit-param-paction": "Action to perform.",
|
|
"apihelp-visualeditoredit-param-page": "The page to perform actions on.",
|
|
"apihelp-visualeditoredit-param-section": "The section on which to act.",
|
|
"apihelp-visualeditoredit-param-sectiontitle": "Title for new section.",
|
|
"apihelp-visualeditoredit-param-starttimestamp": "When saving, set this to the timestamp of when the page was loaded. Used to detect edit conflicts.",
|
|
"apihelp-visualeditoredit-param-summary": "Edit summary.",
|
|
"apihelp-visualeditoredit-param-watch": "Add the page to the current user's watchlist.",
|
|
"apihelp-visualeditoredit-param-wikitext": "The wikitext to act with.",
|
|
"apihelp-visualeditoredit-summary": "Save an HTML5 page to MediaWiki (converted to wikitext via the Parsoid service)."
|
|
}
|