Last modified: 2014-10-16 00:11:31 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 T73573, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 71573 - MobileFrontend: Page views get "#undefined" hash force appended
MobileFrontend: Page views get "#undefined" hash force appended
Status: RESOLVED FIXED
Product: MobileFrontend
Classification: Unclassified
stable (Other open bugs)
unspecified
All All
: High normal
: ---
Assigned To: Nobody - You can work on this!
: code-update-regression
: 72071 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-02 20:25 UTC by Max Semenik
Modified: 2014-10-16 00:11 UTC (History)
8 users (show)

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


Attachments

Description Max Semenik 2014-10-02 20:25:56 UTC
Go to https://zh.m.wikipedia.org/wiki/宋任窮 and you will have #undefined appended to URL once page loads. Reproduced in desktop Chrome and FF. Probably has something to do with redirect handling.
Comment 1 Bingle 2014-10-02 20:30:18 UTC
Prioritization and scheduling of this bug is tracked on Trello card https://trello.com/c/7kDNfITT
Comment 2 Gerrit Notification Bot 2014-10-05 14:29:49 UTC
Change 164772 had a related patch set uploaded by Florianschmidtwelzow:
Don't add #undefined as redirectHash

https://gerrit.wikimedia.org/r/164772
Comment 3 Gerrit Notification Bot 2014-10-06 18:14:32 UTC
Change 164772 merged by jenkins-bot:
Don't add #undefined as redirectHash

https://gerrit.wikimedia.org/r/164772
Comment 4 Gerrit Notification Bot 2014-10-15 05:48:34 UTC
Change 166716 had a related patch set uploaded by Krinkle:
Don't add #undefined as redirectHash

https://gerrit.wikimedia.org/r/166716
Comment 5 Krinkle 2014-10-15 05:52:47 UTC
*** Bug 72071 has been marked as a duplicate of this bug. ***
Comment 6 Krinkle 2014-10-15 05:54:26 UTC
Please backport fixes for regressions like these. This has been in production for over a week!

(In reply to Krinkle from comment #0)
> https://en.m.wikipedia.org/wiki/Black_Peter
> https://en.m.wikipedia.org/wiki/Black_Peter#undefined
> 
> https://en.m.wikipedia.org/wiki/1550–1600_in_fashion
> https://en.m.wikipedia.org/wiki/1550%E2%80%931600_in_fashion#undefined
> 
> Also found loads of them on social media and other usages.
Comment 7 Jon 2014-10-15 16:58:30 UTC
Mmm.. What is your criteria for backporting regressions Krinkle?
We only lightning deploy when we have a serious problem - e.g. hitting servers, functionality broken.

This is a hash... why would we backport this.

Also note this didn't even work prior to the regression so it's not like we've taken away functionality on mobile.
Comment 8 Gerrit Notification Bot 2014-10-15 23:05:28 UTC
Change 166716 merged by jenkins-bot:
Don't add #undefined as redirectHash

https://gerrit.wikimedia.org/r/166716
Comment 9 Krinkle 2014-10-15 23:21:51 UTC
(In reply to Jon from comment #7)
> Mmm.. What is your criteria for backporting regressions Krinkle?
> We only lightning deploy when we have a serious problem - e.g. hitting
> servers, functionality broken.
> 
> This is a hash... why would we backport this.
>

My criteria for backporting is a superset of "it's a regression". Within regressions, none. Always. Why not?

As for this particular bug:
It affects the end user. It impacts urls people share. It looks unprofessional on us.
Comment 10 Jon 2014-10-15 23:28:34 UTC
Krinkle I would suggest a productive way of taking this forward would be to start a wiki page highlighting what kinds of changes deserve lightning deploys.

This wasn't a regression as this never used to work in mobile, it just happened the fix to make it work wasn't complete enough.

I still think it wasn't worth a lightning deploy in this case. It looks unprofessional yes but in my opinion that just encourages us to write better code to avoid this sort of thing.

Really we want daily deploys here :)
Comment 11 Krinkle 2014-10-15 23:41:56 UTC
(In reply to Jon from comment #10)
> Krinkle I would suggest a productive way of taking this forward would be to
> start a wiki page highlighting what kinds of changes deserve lightning
> deploys.
> 
> This wasn't a regression as this never used to work in mobile, it just
> happened the fix to make it work wasn't complete enough.
>

You're missing the point. The regression is that virtually every url people opened on mobile for the past 1-2 weeks resulted in an immediate javascript location.hash assignment to "undefined". Thus resulting in the bug as described, including urls as shared by browser and OS plugins, as well as plain select/copy/paste through all kinds of media.
Comment 12 Jon 2014-10-16 00:11:31 UTC
Krinkle I understand you. I just don't agree with you that it warrants a lightning deploy. The URL still points to the same resource they wanted to share. We will just have to agree to disagree here.

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


Navigation
Links