Last modified: 2013-12-05 00:10:39 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 T59997, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57997 - Improperly round trips template tags when providing wikitext for a page directly
Improperly round trips template tags when providing wikitext for a page directly
Status: RESOLVED WORKSFORME
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Gabriel Wicke
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-04 19:47 UTC by Erik Bernhardson
Modified: 2013-12-05 00:10 UTC (History)
1 user (show)

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


Attachments

Description Erik Bernhardson 2013-12-04 19:47:59 UTC
$ curl -d 'wt={{FULLPAGENAME}} {{PAGENAME}}' http://parsoid-lb.eqiad.wikimedia.org/enwiki/Main_Page > /tmp/parsoid.wt

$ curl -d "html=$(cat /tmp/parsoid.wt)" http://parsoid-lb.eqiad.wikimedia.org/enwiki/Main_Page && echo
{{--        BA}} {{ACROSS T}}

$ cat /tmp/parsoid.wt
<!DOCTYPE html>
<html prefix="dc: http://purl.org/dc/terms/ mw: http://mediawiki.org/rdf/" about="http://en.wikipedia.org/wiki/Special:Redirect/revision/574690625"><head prefix="mwr: http://en.wikipedia.org/wiki/Special:Redirect/"><meta property="mw:articleNamespace" content="0"/><link rel="dc:replaces" resource="mwr:revision/574690493"/><meta property="dc:modified" content="2013-09-27T03:10:17.000Z"/><meta about="mwr:user/153365" property="dc:title" content="Tariqabjotu"/><link rel="dc:contributor" resource="mwr:user/153365"/><meta property="mw:revisionSHA1" content="e0564e710b93f998658bd5527f0042eaba6d6c87"/><meta property="dc:description" content="removing unnecessary pipe"/><meta property="mw:parsoidVersion" content="0"/><link rel="dc:isVersionOf" href="//en.wikipedia.org/wiki/Main_Page"/><title>Main Page</title><base href="//en.wikipedia.org/wiki/Main_Page"/></head><body data-parsoid='{"dsr":[0,6391,0,0]}'><p data-parsoid='{"dsr":[0,6391,0,0]}'><span about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"--        BA","function":"fullpagename"},"params":{},"i":0}}]}' data-parsoid='{"dsr":[0,16,null,null],"pi":[[]]}'>Main Page</span> <span about="#mwt2" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"ACROSS T","function":"pagename"},"params":{},"i":0}}]}' data-parsoid='{"dsr":[17,29,null,null],"pi":[[]]}'>Main Page</span></p></body></html>
Comment 1 Gabriel Wicke 2013-12-05 00:09:52 UTC
Seems to work with urlencoding:

curl --data-urlencode 'wt={{FULLPAGENAME}} {{PAGENAME}}' http://parsoid-lb.eqiad.wikimedia.org/enwiki/Main_Page > /tmp/parsoid.wt
curl --data-urlencode "html@/tmp/parsoid.wt" http://parsoid-lb.eqiad.wikimedia.org/enwiki/Main_Page
{{FULLPAGENAME}} {{PAGENAME}}
Comment 2 Gabriel Wicke 2013-12-05 00:10:39 UTC
Please reopen if you still see an issue.

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


Navigation
Links