Last modified: 2013-10-22 08:14:01 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 T57926, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55926 - www.wikisource.org API call no longer works
www.wikisource.org API call no longer works
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Apache configuration (Other open bugs)
wmf-deployment
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-20 00:27 UTC by Donald Lancon
Modified: 2013-10-22 08:14 UTC (History)
1 user (show)

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


Attachments

Description Donald Lancon 2013-10-20 00:27:25 UTC
The following API call used to work until a few days ago:

http://www.wikisource.org/w/api.php?action=query&meta=siteinfo&siprop=statistics&format=json

It would return the same thing as:

http://wikisource.org/w/api.php?action=query&meta=siteinfo&siprop=statistics&format=json

Now it ends up redirecting to:

https://wikisource.org/wiki/Main_Page

which doesn't seem like the ideal behavior.  Can we get API calls to www.wikisource.org to work again?
Comment 1 Gerrit Notification Bot 2013-10-20 17:04:19 UTC
Change 90764 had a related patch set uploaded by Reedy:
www.wikisource.org is not a portal, redirect to wikisource.org

https://gerrit.wikimedia.org/r/90764
Comment 2 Sam Reed (reedy) 2013-10-20 17:06:27 UTC
Considering it's not an actual site, but a forced redirect to the non www version...

You should probably also change your script to hit the non www version
Comment 3 Donald Lancon 2013-10-21 01:08:40 UTC
(In reply to comment #2)
> Considering it's not an actual site, but a forced redirect to the non www
> version...
> 
> You should probably also change your script to hit the non www version

I know how to fix it on my end. I'm asking can we not redirect API calls the same way we do regular page calls?

After all, 

  http://www.wikisource.org/wiki/Special:Statistics

still brings up the same page as

  https://wikisource.org/wiki/Special:Statistics

not

  https://wikisource.org/wiki/Main_Page
Comment 4 Gerrit Notification Bot 2013-10-21 09:17:23 UTC
Change 90764 merged by Akosiaris:
www.wikisource.org is not a portal, but a redirect to wikisource.org

https://gerrit.wikimedia.org/r/90764
Comment 5 Jan Zerebecki 2013-10-22 08:14:01 UTC
The link from the description works again. Thanks for catching this.

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


Navigation
Links