Last modified: 2013-06-06 00:59:52 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 T51217, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 49217 - Parse returns errors in the html response
Parse returns errors in the html response
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-05 22:58 UTC by Jon
Modified: 2013-06-06 00:59 UTC (History)
9 users (show)

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


Attachments

Description Jon 2013-06-05 22:58:11 UTC
Request URL:https://en.m.wikipedia.org/w/api.php
Request Method:POST

Form Data:
format:json
action:parse
title:Saudade
text:<ref>[http://www.priberam.pt/DLPO/default.aspx?pal=saudade Dicionário Priberam da Língua Portuguesa]</ref>
prop:text

Gives the response:
{"parse":{"title":"Saudade","text":{"*":"<p><sup id=\"cite_ref-1\" class=\"reference\"><a href=\"#cite_note-1\"><span>[</span>1<span>]</span></a></sup><br />\n<strong class=\"error\">Cite error: There are <code>&lt;ref&gt;</code> tags on this page, but the references will not show without a <code>{{Reflist}}</code> template or a <code>&lt;references /&gt;</code> tag (see the <a href=\"/wiki/Help:Cite_errors/Cite_error_refs_without_references\" title=\"Help:Cite errors/Cite error refs without references\">help page</a>).</strong></p>\n\n\n<!-- \nNewPP limit report\nPreprocessor visited node count: 134/1000000\nPreprocessor generated node count: 1529/1500000\nPost\u2010expand include size: 3063/2048000 bytes\nTemplate argument size: 1864/2048000 bytes\nHighest expansion depth: 12/40\nExpensive parser function count: 0/500\n-->\n"}}}

This should be a warning - not part of the HTML output. As an API consumer I should be able to choose how I handle errors in the parser.
Comment 1 Brad Jorsch 2013-06-06 00:59:52 UTC
No, it shouldn't. When a page is actually rendered it's part of the HTML output, so it should be the same here.

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


Navigation
Links