Page MenuHomePhabricator

[5.0.0 (601)] Special pages display confusing warnings
Closed, InvalidPublic2 Estimated Story Points

Assigned To
None
Authored By
Etonkovidova
Dec 29 2015, 2:07 AM
Referenced Files
F3857976: MissingTitleAPIError - but title is sent.png
Apr 10 2016, 2:27 PM
F3618623: IMG_0153.PNG
Mar 12 2016, 12:10 AM
F3618621: IMG_0155 (1).PNG
Mar 12 2016, 12:10 AM
F3618616: IMG_0157.PNG
Mar 12 2016, 12:10 AM
F3618618: IMG_0156.PNG
Mar 12 2016, 12:10 AM
F3174271: IMG_0496.PNG
Dec 29 2015, 2:07 AM
F3174277: IMG_0494.PNG
Dec 29 2015, 2:07 AM
F3174275: IMG_0495.PNG
Dec 29 2015, 2:07 AM

Description

Exists in current production version.

Repro steps

  1. Type in Search Special: - there will be many suggestions for articles from Special namespace.
  2. Click on any suggestion - the article won't be displayed.

Expected results

Android app redirects to mobile website for Special pages.
At the very least,

  • the error messages should be consistent, informative (more specific)
  • the blank page should not be saved

Actual results

  1. 'The page you requested does not exist' and/or 'Sorry, could not load the article' or a blank page will be displayed (which can be saved) depending from which page you performed such a search.
  2. Pages that are saved, displayed in Saved pages and can be clicked - the same warnings will be displayed as in #1
  3. The Explore page will be populated with empty placeholders referring to pages in e.g. Special: or Wikipedia: - reported as T119007: [5.0.0.503] non-main space articles not handled properly from Explore feed

Some display issues for non-main namespace articles are filed as T119010: [5.0.0.503] no-main namespace articles place empty 'Read more' in footer

IMG_0497.PNG (2×1 px, 138 KB)

IMG_0496.PNG (2×1 px, 66 KB)

IMG_0495.PNG (2×1 px, 70 KB)

IMG_0494.PNG (2×1 px, 70 KB)

Event Timeline

Etonkovidova raised the priority of this task from to Needs Triage.
Etonkovidova updated the task description. (Show Details)
Etonkovidova subscribed.
JMinor triaged this task as Medium priority.Jan 26 2016, 1:09 AM
JMinor subscribed.

Yes, lets just re-direct to Web if we can cleanly detect we cannot display a page.

Still exists in 5.0.1 (791) - for testing after the fix:

  • Search for 'Special:' will display a full suggestions list
  • from the suggested results clicking on any article name will display a blank page with a warning 'page doesn't exist'
  • the Save button is active and the article (not displayed) can be "saved"
  • "Saved" Special pages are displayed with full titles in Saved/History
  • "Viewing" Special articles triggers 'Because you read' suggestions which are displayed as empty placeholders

IMG_0157.PNG (1×640 px, 40 KB)

IMG_0156.PNG (1×640 px, 214 KB)

IMG_0155 (1).PNG (1×640 px, 36 KB)

IMG_0153.PNG (1×640 px, 93 KB)

JMinor added a subscriber: MBinder_WMF.

@MBinder_WMF can you link this up with the Namespace epic? Thanks.

Lets try to see if there is a very quick fix for in app, otherwise lets push to mobile web for these pages.

I've been debugging this issue for a while. These are my findings for the next person that put some time on it:

  1. The API Request is made correctly, the page parameter is sent, however the API response is erroneous:

In WMFArticleViewController the method

- (void)fetchArticleForce:(BOOL)force

Receives the error "missingtitle"

MissingTitleAPIError - but title is sent.png (875×1 px, 525 KB)

  1. The mobile web version is retrieving the page properly, you could check with them :

    a) Are they using the same API with the same paremeters to retrieve special pages?

    b) If not, how is the web mobile version retrieving special pages?.

    Search for Special pages on the web mobile version here: Web Mobile Version
  1. Paste the request on the browser to see the response + error quickly:

[[ https://en.m.wikipedia.org/w/api.php?action=mobileview&format=json&noheadings=true&page=Special%3AActiveUsers&prop=sections%7Ctext%7Clastmodified%7Clastmodifiedby%7Clanguagecount%7Cid%7Cprotection%7Ceditable%7Cdisplaytitle%7Cthumb%7Cdescription%7Cimage%7Crevision&sectionprop=toclevel%7Cline%7Canchor%7Clevel%7Cnumber%7Cfromtitle%7Cindex&sections=all&thumbwidth=640

Ask for Special:ActiveUser ]]

Error response:

{"servedby":"mw1194","error":{"code":"missingtitle","info":"The page you requested doesn't exist","*":"See https://en.wikipedia.org/w/api.php for API usage"}}
  1. For quick fix: if the search title text begins with "Special:" redirect to mobile browser i.e **https://en.m.wikipedia.org/wiki/Special:AllMyUploads**

Error screen should be standard "Could not load article" screen.

Error banner should be "The page you requested cannot be opened. Tap to open in Safari." and (nice-to-have) should tap through to Safari with URL loaded.

JMinor lowered the priority of this task from Medium to Low.Apr 27 2016, 5:59 PM
JMinor removed a project: iOS-app-v5.0.3-Disco.