Last modified: 2014-07-10 22:39:34 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 T69426, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 67426 - Mobile is somehow sending API requests that ask for text/html content
Mobile is somehow sending API requests that ask for text/html content
Status: RESOLVED FIXED
Product: MobileFrontend
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-02 18:14 UTC by Oliver Keyes
Modified: 2014-07-10 22:39 UTC (History)
8 users (show)

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


Attachments

Description Oliver Keyes 2014-07-02 18:14:19 UTC
I've got multiple requests in the logs of the form  http://commons.m.wikimedia.org/w/api.php?useformat=mobile&r=[redacted]&origin=https://en.m.wikipedia.org with the MIME type text/html.

Yuvi informs me these are upload requests from mobile web, which is useful but are they actually getting text/html, or what? Because MIME type filtering is important in how we understand traffic-related metrics, and if they're not asking for text/html content they shouldn't pretend that they are.
Comment 1 Bingle 2014-07-07 17:20:26 UTC
Prioritization and scheduling of this bug is tracked on Trello card https://trello.com/c/oGal5O2C
Comment 2 Max Semenik 2014-07-08 01:59:18 UTC
Oliver, anything interesting about their user-agents?
Comment 3 Oliver Keyes 2014-07-09 01:10:38 UTC
Adding Ezachte; Erik, MaxSem asked about which header we're taking the MIME type found in the sampled logs from. Any chance you know?
Comment 4 Erik Zachte 2014-07-09 12:15:00 UTC
Sorry, no idea, I take the mime types in the log at face value. They might be from a footer instead of a header. Christian might know better?
Comment 5 christian 2014-07-10 18:42:44 UTC
For sampled-1000 logs underneath /a/squid/archive on stat1002, it is [1]

  %{Content-Type}o

So Content-Type header of response to client.

[1] https://git.wikimedia.org/blob/operations%2Fpuppet.git/ebcbef50568960d424fcb95fc79ba3be945a905e/modules%2Fvarnish%2Ffiles%2Fvarnishncsa.default#L9
Comment 6 Oliver Keyes 2014-07-10 22:39:34 UTC
It looks like the bug is in fact not MobileFrontend, but instead PHP. We all knew the language was a big collection of bugs and now we have validated it ;p.

Luckily it is a CONSISTENT big collection of bugs and so I can modify the PV heuristics slightly to solve for this.

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


Navigation
Links