Last modified: 2008-04-16 19:06:16 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 T15762, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 13762 - HTTP response format does not obey "format" param in some error cases
HTTP response format does not obey "format" param in some error cases
Status: RESOLVED DUPLICATE of bug 10733
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Roan Kattouw
http://en.wikipedia.org/w/api.php?for...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-04-16 12:09 UTC by Manos Batsis
Modified: 2008-04-16 19:06 UTC (History)
3 users (show)

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


Attachments
The HTML error page I got instead of JSON (90.78 KB, image/png)
2008-04-16 12:09 UTC, Manos Batsis
Details

Description Manos Batsis 2008-04-16 12:09:58 UTC
Created attachment 4822 [details]
The HTML error page I got instead of JSON

Since i asked for JSON, thats what i should have got instead of the attached HTML page :-) 

I suppose the API can only cover this up to somewhere and after that it's an infrastructure thing, so this may belong to the "Wikimedia" product. Anyway, the error at the bottom of the page (screenshot also attached ):

Request: GET http://en.wikipedia.org/w/api.php?format=json&list=categorymembers&action=query&cmlimit=10&cmtitle=Category:Greece&callback=SarissaAnonymous0, from 88.218.118.121 via knsq24.knams.wikimedia.org (squid/2.6.STABLE18) to ()
Error: ERR_ACCESS_DENIED, errno [No Error] at Wed, 16 Apr 2008 11:27:32 GMT
Comment 1 Roan Kattouw 2008-04-16 12:14:54 UTC
Hmm. It appears that this error message is output somewhere in WebStart.php or in a file included by it. That should be changed so that index.php and api.php can format the error each their own way.
Comment 2 Bryan Tong Minh 2008-04-16 12:16:55 UTC
WONTFIX, this error is generated by the squids and not by the API. On the other hand, the fact that & gives a ERR_ACCESS_DENIED is something that is very strange. 
Comment 3 Manos Batsis 2008-04-16 12:39:43 UTC
Good catch on the & Bryan, thanks. Still think this maybe should be moved from the "API" to the "Wikimedia" product. 
Comment 4 Bryan Tong Minh 2008-04-16 12:45:32 UTC
Already filed as Bug 13763.

Hmmm actually it is INVALID rather than WONTFIX, not?
Comment 5 Manos Batsis 2008-04-16 12:49:16 UTC
True in any case; besides being irrelevant to API, changing & to & fixed it for me. 
Comment 6 Brion Vibber 2008-04-16 19:06:16 UTC

*** This bug has been marked as a duplicate of bug 10733 ***

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


Navigation
Links