Last modified: 2014-05-19 17:17:11 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 T66305, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 64305 - mobileview fails on content pages redirecting to special pages
mobileview fails on content pages redirecting to special pages
Status: RESOLVED FIXED
Product: MobileFrontend
Classification: Unclassified
stable (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-04-23 18:55 UTC by Max Semenik
Modified: 2014-05-19 17:17 UTC (History)
7 users (show)

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


Attachments

Description Max Semenik 2014-04-23 18:55:25 UTC
Example: https://en.wikipedia.org/w/api.php?action=mobileview&page=User%3APurplebackpack89%2FC&redirects=yes&prop=sections%7Ctext&sections=&sectionprop=level%7Cline&noheadings=yes&format=json

returns {"servedby":"mw1125","error":{"code":"internal_api_error_MWException","info":"Exception Caught: Invalid or virtual namespace -1 given.","*":""}} because the page in question, https://en.wikipedia.org/wiki/User:Purplebackpack89/C , is a redirect to Special:Contributions/Purplebackpack89.

Suggestions what to return in such cases are welcome.
Comment 1 Bingle 2014-04-23 19:00:20 UTC
Prioritization and scheduling of this bug is tracked on Mingle card https://wikimedia.mingle.thoughtworks.com/projects/mobile/cards/1959
Comment 2 Max Semenik 2014-04-23 19:07:02 UTC
<YuviPanda> MaxSem: ah, right. redirect: "Special:Contributions/something", special: true
<YuviPanda> ?
<YuviPanda> MaxSem: similar to mainpage: ""
<YuviPanda> MaxSem: in fact a general "specialpage": "" would be useful as well, I think
Comment 3 Juliusz Gonera 2014-04-25 22:50:09 UTC
Max, not sure what are the steps to reproduce the bug. If I go to the mobile version of https://en.wikipedia.org/wiki/User:Purplebackpack89/C everything seems to be fine.
Comment 4 Jon 2014-05-16 15:29:53 UTC
Max it would be great if the api could return a link to the special page or even better return something akin to
{
redirect: 'Special:X'
}
so the caller can take care of it.

From mobile web perspective it's not a big deal - any requests for pages that return errors will be redirected to via the address bar so you probably at very least want to stop the exception being thrown! :)

Juliusz: the error is in the API response not the web page.
Comment 5 Gerrit Notification Bot 2014-05-16 23:28:51 UTC
Change 133866 had a related patch set uploaded by MaxSem:
mobileview: handle pages redirecting to special/media

https://gerrit.wikimedia.org/r/133866
Comment 6 Gerrit Notification Bot 2014-05-19 17:17:04 UTC
Change 133866 merged by jenkins-bot:
mobileview: handle pages redirecting to special/media

https://gerrit.wikimedia.org/r/133866

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


Navigation
Links