Page MenuHomePhabricator

[Regression] Accessing plain Special:FilePath should result in an error
Closed, ResolvedPublic

Description

Special:FilePath has been replaced by Special:Redirect/file. However when requested without arguments it redirects to Special:Redirect/file/ instead of Special:Redirect/file, causing Special:Redirect to trigger an error for empty filename

https://commons.wikimedia.org/wiki/Special:FilePath
->
https://commons.wikimedia.org/wiki/Special:Redirect/file/
-> Lookup: filename
-> error: "Value not found"

https://commons.wikimedia.org/wiki/Special:Redirect/file
-> Lookup: filename
(no error)


Version: 1.24rc
Severity: normal

Details

Reference
bz66980

Event Timeline

bzimport raised the priority of this task from to Normal.Nov 22 2014, 3:32 AM
bzimport set Reference to bz66980.
Krinkle created this task.Jun 23 2014, 12:47 PM

But it DOES result in an error.
Or do you mean that you want more "correct" error ?

When Special:FilePath is called without arguments, it should redirect to Special:Redirect/file - that's currently not the case.

Change 142144 had a related patch set uploaded by Brian Wolff:
Make Special:FilePath redirect to Special:Redirect/file

https://gerrit.wikimedia.org/r/142144

Change 142144 merged by jenkins-bot:
Make Special:FilePath redirect to Special:Redirect/file

https://gerrit.wikimedia.org/r/142144