Last modified: 2013-08-29 20:40:59 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 T54596, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 52596 - VisualEditor: Some pages with short titles (incl all with single character titles) are not recognised as existing pages in the link box
VisualEditor: Some pages with short titles (incl all with single character ti...
Status: RESOLVED DUPLICATE of bug 51013
Product: VisualEditor
Classification: Unclassified
Editing Tools (Other open bugs)
unspecified
All All
: High normal
: ---
Assigned To: Rob Moen
:
: 53547 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-07 03:48 UTC by Sandrobt
Modified: 2013-08-29 20:40 UTC (History)
9 users (show)

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


Attachments
Link dialog doesn't recognise that existence of single-character page names (29.86 KB, image/png)
2013-08-09 18:44 UTC, Chris McKenna
Details

Description Sandrobt 2013-08-07 03:48:01 UTC
When trying to link a page with less than or equal to 3 characters, the page is often indicated as New Page in the link box. For example, try to link "A", "AB" or "ABB" on en.wiki (both with capital letters and in lower case, the latter being redirects). 

Notice that this problem doesn't happen with CD and NBA, but it does with Cd and Nba (all these pages are redirects on en.wiki).
Comment 1 Sandrobt 2013-08-07 03:59:15 UTC
Maybe writing "short" in the title was a mistake (but anyway this bug appears more often with short titles): SEGA, FIDO and GOOGLE also are not recognized as existing pages. However these are all redirects, so perhaps this is another known independent issue?
Comment 2 Chris McKenna 2013-08-09 18:35:16 UTC
Redirects not showing in the list are due to case sensitivity issues, see bug 50898 

Single character titles are never recognised, whether they are articles (e.g [[A]], [[Ä]]) or redirects, so I'm boldly refocusing this bug solely on this issue.
Comment 3 Sandrobt 2013-08-09 18:43:33 UTC
What about "AB" or "FRA"? Those are not redirects. Maybe "single character titles" is not accurate enough.
Comment 4 Chris McKenna 2013-08-09 18:44:00 UTC
Created attachment 13081 [details]
Link dialog doesn't recognise that existence of single-character page names
Comment 5 Chris McKenna 2013-08-09 18:49:49 UTC

(In reply to comment #3)
> What about "AB" or "FRA"? Those are not redirects. Maybe "single character
> titles" is not accurate enough.

Hmm, although redirects do exist at Ab and Fra which is probably confusing the issue. I think all TLAs exist as redirects or articles in uppercase and titlecase form so I don't know how to test this.

(In reply to comment #4)
> Created attachment 13081 [details]
> Link dialog doesn't recognise that existence of single-character page names

This shows that it is the page name (excluding namespace) not the full page name (including namespace) that matters as [[User:A]] (which exists) is not recognised.
Comment 6 Sandrobt 2013-08-09 18:55:22 UTC
> Hmm, although redirects do exist at Ab and Fra which is probably confusing
> the
> issue. I think all TLAs exist as redirects or articles in uppercase and
> titlecase form so I don't know how to test this.

Also User:AB and User:FRA erroneously appear as non-existing (and user:Ab and User:Fra don't exist).
Comment 7 Chris McKenna 2013-08-09 19:00:01 UTC
(edit conflict)
Actually assuming that what happens in the user: namespace matches what happens in the article namespace then it is to do with the presence of a redirect. [[User:Rob]] exists but no pages (redirects or otherwise) exist for other capitalisations of those three letters. [[User:Rob]] does appear in the list of suggestions. Now whether that is this bug or bug 50898 I haven't got a clue, so I'll comment there as well.

(new text)
So it appears that it might be capitalisation related rather than redirect related - it works with sentence case Rob but not allcaps AB and FRA.
Comment 8 Chris McKenna 2013-08-09 19:11:41 UTC
Hmm, not necessarily as simple as that as it recognises [[User:ABC]] and [[user:APL]]. It recognises both [[User:BBX]] and [[User:Bbx]] which are different pages and different users (the former Irish the latter a Finland-Swede).

It doesn't recognise [[User:Jim]] but that is a redirect to [[User:Jim (usurped)]].

It does recognise [[User:RVJ]], [[User:ZzZ]] and [[User:PQ3]]. 

I'm stumped!
Comment 9 Sandrobt 2013-08-10 03:43:09 UTC
Another surprising case is "Cara" on it.wiki. It exists and it is not a redirect but is not recognized as existent (neither writing "Cara" nor "cara"), and "CARA" doesn't exist at all. 
So I guess this is not (only) related with redirects and it definitely appears also with pages with more than one character.
Comment 10 Chris McKenna 2013-08-10 13:42:44 UTC
Indeed very, very odd. I've adjusted the bug summary to reflect the discovered behaviour. It is almost certainly unrelated to redirects though.
Comment 11 James Forrester 2013-08-29 20:33:38 UTC
*** Bug 53547 has been marked as a duplicate of this bug. ***
Comment 12 James Forrester 2013-08-29 20:37:27 UTC
This is because VisualEditor relies on MediaWiki's search system to work out what pages exist, and the search engine ignores short strings as not worth bothering with.

We could theoretically fix this in VisualEditor with a hack, but fixing search would be a better solution.
Comment 13 James Forrester 2013-08-29 20:40:59 UTC

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

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


Navigation
Links