Last modified: 2013-09-06 01:33:14 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 T53308, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 51308 - mw.Title cannot parse titles starting with a period.
mw.Title cannot parse titles starting with a period.
Status: RESOLVED DUPLICATE of bug 38081
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
1.22.0
All All
: High normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 51979 52467 (view as bug list)
Depends on:
Blocks: 50023 52683
  Show dependency treegraph
 
Reported: 2013-07-14 03:12 UTC by Bawolff (Brian Wolff)
Modified: 2013-09-06 01:33 UTC (History)
10 users (show)

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


Attachments

Description Bawolff (Brian Wolff) 2013-07-14 03:12:53 UTC
Originally noticed when I viewed https://en.wikipedia.org/wiki/.186?redirect=no and got a bunch of exceptions from getting started. Maybe related to bug 50023

>>> var t = new mw.Title( '.1' );
Error: mw.Title: Could not parse title ".1" { message="mw.Title: Could not parse title ".1"", more...}

Browser: firefox 3.5
Comment 1 Bartosz Dziewoński 2013-07-19 19:07:26 UTC
It also kinda fails on all titles with a dot in it, due to themisguided "file extension" support it has…

>>> (new mw.Title( 'A.B' )).getNameText()
"A"
Comment 2 John Mark Vandenberg 2013-07-25 00:08:09 UTC
This causes the VE edit tab to not load on a page starting with only one period.

https://en.wikipedia.org/wiki/.NET_Framework_version_history
https://en.wikipedia.org/wiki/.007

Several periods in a row work fine

https://en.wikipedia.org/wiki/....And_Proud

Unrelated bug: special:prefixindex doesnt work for '.'

https://en.wikipedia.org/w/index.php?title=Special%3APrefixIndex&prefix=.&namespace=0

There are two and bit pages of articles with this problem is here:

https://en.wikipedia.org/w/index.php?title=Special:PrefixIndex&from=..Z&prefix=&namespace=0&hideredirects=1
Comment 3 Bartosz Dziewoński 2013-07-25 00:31:31 UTC
(In reply to comment #2)
> This causes the VE edit tab to not load on a page starting with only one
> period.

CC'ing James :)
Comment 4 Bawolff (Brian Wolff) 2013-07-25 01:14:15 UTC
> 
> Unrelated bug: special:prefixindex doesnt work for '.'
> 
> https://en.wikipedia.org/w/index.php?title=Special%3APrefixIndex&prefix=.
> &namespace=0

Split to bug 52010. Short version is Special:prefixindex doesn't work with prefixes that aren't valid titles. ( '.' is not a valid title because web browsers get confused and think its unix relative directory syntax)
Comment 5 James Forrester 2013-07-26 18:25:06 UTC
VE team will work on this in the next few days unless someone wants to grab it from us before that. :-)
Comment 6 Krinkle 2013-07-26 18:29:45 UTC
(In reply to comment #1)
> It also kinda fails on all titles with a dot in it, due to themisguided "file
> extension" support it has…
> 
> >>> (new mw.Title( 'A.B' )).getNameText()
> "A"

This is imho irrelevant and expected behaviour. If you call #getNameText you're explicitly asking to get the page title without any prefix it may have (which, since extensions have little meaning in MediaWiki, can be in any namespace).

You're looking for mw.Title#getMainText  [1].



https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.Title-method-getMainText
Comment 7 Elitre 2013-08-02 17:08:06 UTC
(Sorry, I believed I just filed https://bugzilla.wikimedia.org/show_bug.cgi?id=52467 :/ )
Comment 8 Liangent 2013-08-02 17:32:14 UTC
*** Bug 52467 has been marked as a duplicate of this bug. ***
Comment 9 Bartosz Dziewoński 2013-08-10 12:09:32 UTC
*** Bug 52683 has been marked as a duplicate of this bug. ***
Comment 10 James Forrester 2013-08-30 02:54:45 UTC
*** Bug 51979 has been marked as a duplicate of this bug. ***
Comment 11 Krinkle 2013-09-06 01:33:14 UTC
Folding back into bug 38081

*** This bug has been marked as a duplicate of bug 38081 ***

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


Navigation
Links