Page MenuHomePhabricator
Paste P32287

DiscussionTools quirk with `action=parse`
ActivePublic

Authored by Chlod on Aug 5 2022, 12:08 AM.
Tags
None
Referenced Files
F35398989: Screenshot_7.png
Aug 5 2022, 12:11 AM
F35398987: DiscussionTools quirk with `action=parse`
Aug 5 2022, 12:08 AM
Subscribers
None
// C:\Users\chlod>curl -v --url https://en.wikipedia.org/w/api.php --header "content-type: multipart/form-data" --form action=parse --form prop=text --form "title=User talk:Chlod" --form "text={{copied|from=A|to=B}}" --form format=json --form disablelimitreport=true
// * Trying 103.102.166.224:443...
// * Connected to en.wikipedia.org (103.102.166.224) port 443 (#0)
// * schannel: disabled automatic use of client certificate
// * ALPN: offers http/1.1
// * ALPN: server accepted http/1.1
// > POST /w/api.php HTTP/1.1
// > Host: en.wikipedia.org
// > User-Agent: curl/7.83.1
// > Accept: */*
// > Content-Length: 580
// > Content-Type: multipart/form-data; boundary=------------------------87f96e255a7501f4
// >
// * We are completely uploaded and fine
// * schannel: failed to decrypt data, need more data
// * Mark bundle as not supporting multiuse
// < HTTP/1.1 200 OK
// < date: Fri, 05 Aug 2022 00:03:10 GMT
// < server: mw1450.eqiad.wmnet
// < x-content-type-options: nosniff
// < x-frame-options: SAMEORIGIN
// < content-disposition: inline; filename=api-result.json
// < vary: Accept-Encoding,Treat-as-Untrusted,X-Forwarded-Proto,Cookie,Authorization
// < cache-control: private, must-revalidate, max-age=0
// < content-type: application/json; charset=utf-8
// < age: 0
// < x-cache: cp5016 miss, cp5009 pass
// < x-cache-status: pass
// < server-timing: cache;desc="pass", host;desc="cp5009"
// < strict-transport-security: max-age=106384710; includeSubDomains; preload
// < report-to: { "group": "wm_nel", "max_age": 86400, "endpoints": [{ "url": "https://intake-logging.wikimedia.org/v1/events?stream=w3c.reportingapi.network_error&schema_uri=/w3c/reportingapi/network_error/1.0.0" }] }
// < nel: { "report_to": "wm_nel", "max_age": 86400, "failure_fraction": 0.05, "success_fraction": 0.0}
// < set-cookie: WMF-Last-Access=05-Aug-2022;Path=/;HttpOnly;secure;Expires=Tue, 06 Sep 2022 00:00:00 GMT
// < set-cookie: WMF-Last-Access-Global=05-Aug-2022;Path=/;Domain=.wikipedia.org;HttpOnly;secure;Expires=Tue, 06 Sep 2022 00:00:00 GMT
// < accept-ch: Sec-CH-UA-Arch,Sec-CH-UA-Bitness,Sec-CH-UA-Full-Version-List,Sec-CH-UA-Model,Sec-CH-UA-Platform-Version
// < permissions-policy: interest-cohort=(),ch-ua-arch=(self "intake-analytics.wikimedia.org"),ch-ua-bitness=(self "intake-analytics.wikimedia.org"),ch-ua-full-version-list=(self "intake-analytics.wikimedia.org"),ch-ua-model=(self "intake-analytics.wikimedia.org"),ch-ua-platform-version=(self "intake-analytics.wikimedia.org")
// < x-client-ip: [REDACTED]
// < set-cookie: [REDACTED]
// < accept-ranges: bytes
// < transfer-encoding: chunked
// <
{"parse":{"title":"User talk:Chlod","pageid":40350753,"text":{"*":"<div class=\"mw-parser-output\"><style data-mw-deduplicate=\"TemplateStyles:r1097618699\">.mw-parser-output .tmbox{margin:4px 0;border-collapse:collapse;border:1px solid #c0c090;background-color:#f8eaba;box-sizing:border-box}.mw-parser-output .tmbox.mbox-small{font-size:88%;line-height:1.25em}.mw-parser-output .tmbox-speedy{border:2px solid #b32424;background-color:#fee7e6}.mw-parser-output .tmbox-delete{border:2px solid #b32424}.mw-parser-output .tmbox-content{border:2px solid #f28500}.mw-parser-output .tmbox-style{border:2px solid #fc3}.mw-parser-output .tmbox-move{border:2px solid #9932cc}.mw-parser-output .tmbox .mbox-text{border:none;padding:0.25em 0.9em;width:100%}.mw-parser-output .tmbox .mbox-image{border:none;padding:2px 0 2px 0.9em;text-align:center}.mw-parser-output .tmbox .mbox-imageright{border:none;padding:2px 0.9em 2px 0;text-align:center}.mw-parser-output .tmbox .mbox-empty-cell{border:none;padding:0;width:1px}.mw-parser-output .tmbox .mbox-invalid-type{text-align:center}@media(min-width:720px){.mw-parser-output .tmbox{margin:4px 10%}.mw-parser-output .tmbox.mbox-small{clear:right;float:right;margin:4px 0 4px 1em;width:238px}}</style><table class=\"plainlinks tmbox tmbox-notice copiednotice\" role=\"presentation\"><tbody><tr><td class=\"mbox-image\"><a href=\"/wiki/File:Splitsection.svg\" class=\"image\"><img alt=\"Splitsection.svg\" src=\"//upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Splitsection.svg/50px-Splitsection.svg.png\" decoding=\"async\" width=\"50\" height=\"25\" srcset=\"//upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Splitsection.svg/75px-Splitsection.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Splitsection.svg/100px-Splitsection.svg.png 2x\" data-file-width=\"40\" data-file-height=\"20\"/></a></td><td class=\"mbox-text\">Text and/or other creative content from <a href=\"/wiki/A\" title=\"A\">A</a> was copied or moved into <a href=\"/wiki/B\" title=\"B\">B</a>. The former page's <a class=\"external text\" href=\"https://en.wikipedia.org/w/index.php?title=A&amp;action=history\">history</a> now serves to <a href=\"/wiki/Wikipedia:Copying_within_Wikipedia\" title=\"Wikipedia:Copying within Wikipedia\">provide attribution</a> for that content in the latter page, and it must not be deleted so long as the latter page exists.</td></tr></tbody></table><div class=\"ext-discussiontools-emptystate\"><div class=\"ext-discussiontools-emptystate-text\"><h3>Start a discussion with Chlod</h3><div class=\"plainlinks\"><p><a href=\"/wiki/Wikipedia:User_pages\" title=\"Wikipedia:User pages\">Talk pages</a> are where people discuss how to make content on Wikipedia the best that it can be. Start a new discussion to connect and collaborate with <a href=\"/wiki/User:Chlod\" title=\"User:Chlod\">Chlod</a>. What you say here will be public for others to see.\n</p></div><span class='oo-ui-widget oo-ui-widget-enabled oo-ui-buttonElement oo-ui-buttonElement-framed oo-ui-labelElement oo-ui-flaggedElement-primary oo-ui-flaggedElement-progressive oo-ui-buttonWidget'><a role='button' tabindex='0' href='/w/index.php?title=User_talk:Chlod&amp;action=edit&amp;section=new' rel='nofollow' class='oo-ui-buttonElement-button'><span class='oo-ui-iconElement-icon oo-ui-iconElement-noIcon oo-ui-image-invert'></span><span class='oo-ui-labelElement-label'>Start a discussion</span><span class='oo-ui-indicatorElement-indicator oo-ui-indicatorElement-noIndicator oo-ui-image-invert'></span></a></span></div><img src=\"/w/extensions/DiscussionTools/images/emptystate.svg\" class=\"ext-discussiontools-emptystate-logo\" alt=\"\"/></div></div>"}}}