Last modified: 2014-04-16 07:05:20 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 T64597, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 62597 - API: action=flow-parsoid-utils strips meta tag from top of <body>
API: action=flow-parsoid-utils strips meta tag from top of <body>
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
Flow (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-13 07:06 UTC by Theopolisme
Modified: 2014-04-16 07:05 UTC (History)
5 users (show)

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


Attachments

Description Theopolisme 2014-03-13 07:06:17 UTC
When using action=flow-parsoid-utils, meta tags produced by Parsoid located at the top of the <body> content are not included in API output.

Compare https://en.wikipedia.org/w/api.php?action=flow-parsoid-utils&from=wikitext&to=html&format=jsonfm&title=Wikipedia%20talk:Articles%20for%20creation/sandbox&content={{AFC%20submission}} to https://en.wikipedia.org/w/api.php?action=flow-parsoid-utils&from=wikitext&to=html&format=jsonfm&title=Wikipedia%20talk:Articles%20for%20creation/sandbox&content=foo{{AFC%20submission}}

In the first example (with the tag directly at the top of the page), no information about the meta tag (mw:PageProp/nonewsectionlink) is available. However, it IS provided when directly using the Parsoid service at http://parsoid.wmflabs.org/enwiki/Wikipedia_talk%3AArticles_for_creation%2Fsandbox?oldid=599397480

This is important for the Articles for creation helper script on enwiki to function properly (ideally we wouldn't be hijacking a Flow tool in the first place, but until parsoid.wmflabs.org has HTTPS support...).

Thanks!

Theo
Comment 1 Theopolisme 2014-03-13 07:07:46 UTC
(Sorry for bugspam, just note that the closing brackets of the templates need to be included in the first two links for them to work properly.)
Comment 2 Maryana Pinchuk 2014-03-17 21:57:36 UTC
Adding Legoktm, who's working on Flow API stuff and will be 1000x more helpful than me ;)
Comment 3 spage 2014-03-18 21:41:20 UTC
Theopolisme do you want to monitor Flow posts with this, or are you just using flow-parsoid-utils because it's a useful Parsoid API?
Comment 4 Theopolisme 2014-03-18 22:01:11 UTC
Hey -- I wasn't using flow-parsoid-utils as a permanent solution, but rather as an intermediate step until the Parsoid web service was more stable. Since reporting this bug, I've switched to using the MediaWiki built-in revision XML parse tree API instead; although not everything we need is available through it, at least it works :)
Comment 5 Kunal Mehta (Legoktm) 2014-04-16 07:05:20 UTC
So generally, flow-parsoid-utils is intended for internal use, but has the side-effect of being one of the few easy ways to use Parsoid via the MW API.

Since Theo has found a workaround, I'll close this as WONTFIX.

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


Navigation
Links