Last modified: 2010-07-10 10:40:21 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 T26303, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 24303 - API should expose srv### somehow
API should expose srv### somehow
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.17.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-07-07 15:35 UTC by Derk-Jan Hartman
Modified: 2010-07-10 10:40 UTC (History)
5 users (show)

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


Attachments

Description Derk-Jan Hartman 2010-07-07 15:35:57 UTC
At the moment when you encounter an error with the API, it can be difficult to trace that problem to a specific srv, because the api doesn't usually render in html. If possible we should find a way to expose the number trough a HTML response header or something.
Comment 1 Sam Reed (reedy) 2010-07-07 15:40:29 UTC
Obviously, only if the setting for it is set ;)

We get a HTML comment on normal pages...

And as a HTML comment in pretty printed api pages...

Should be trivial ish, if we can think of a sane way to do it.
Comment 2 Bryan Tong Minh 2010-07-10 10:01:36 UTC
Just add it unconditionally to ApiResult.
Comment 3 Chad H. 2010-07-10 10:40:21 UTC
Done in r69231, with unrelated stuff removed in the following commit.

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


Navigation
Links