Page MenuHomePhabricator

Special:Search is incorrectly erroring about invalid page names
Closed, ResolvedPublic

Description

"Javascript" is an invalid page name or cannot be created by you.

I'm getting this message on translatewiki.net when logged out. When logged in:

Create the page "Javascript" on this wiki!

The error message is incorrect about the first part.

Not sure if this happends in 1.18 as well, adding as blocker for deployment for now.


Version: 1.20.x
Severity: normal

Details

Reference
bz30900

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 21 2014, 11:56 PM
bzimport set Reference to bz30900.
bzimport added a subscriber: Unknown Object (MLST).

Looks correct enough to me: http://translatewiki.net/wiki/Javascript?action=edit

"Permission error

You do not have permission to edit this page, for the following reason:

translatewiki.net has restricted the ability to create new pages. You can go back and edit an existing page, or log in or create an account."

I think Krinkle means the link from http://translatewiki.net/wiki/Special:Search/Javascript (I can reproduce what he's saying). The error message should be you're not authorized to create the page (or whatever), not that the page title is illegal.

(In reply to comment #2)

I think Krinkle means the link from
http://translatewiki.net/wiki/Special:Search/Javascript (I can reproduce what
he's saying). The error message should be you're not authorized to create the
page (or whatever), not that the page title is illegal.

Or actually, I guess that is what the "cannot be created by you" part of ""Javascript" is an invalid page name or cannot be created by you." means. But I think in the case of no permission it should just not have an error message, or at least have the message be only about that.

Well, there's no reason for it to bother telling you that some arbitrary string you searched for isn't a creatable title in the first place, IMO. So I'll agree that the message is a bit pointless. :)

r65902 which introduced this message claims that searchmenu-new-nocreate should be empty by default, so nothing will be shown unless local site admins add text to opt in to that feature.

Looks like somebody else went in and changed it later... Siebrand in r80746, in reference to bug 26747.

Reverted functional bits of r80746 & the numerous translations of this bogus text from trunk in r97098.