Page MenuHomePhabricator

"Invalid file extension found in the path info or query string" error for page names with dots when using "/wiki/" instead of "/w/index.php?title="
Closed, DeclinedPublic

Description

2015-01-09 14:21:23 mw1164 commonswiki: [2d86793c] /wiki/:Swiss+Psalm.ogg.de.srt?action=raw&ctype=text/x-srt   HttpError from line 942 of /srv/mediawiki/php-1.25wmf13/includes/WebRequest.php: Invalid file extension found in the path info or query string.
#0 /srv/mediawiki/php-1.25wmf13/includes/actions/RawAction.php(61): WebRequest->checkUrlExtension()
#1 /srv/mediawiki/php-1.25wmf13/includes/actions/FormlessAction.php(43): RawAction->onView()
#2 /srv/mediawiki/php-1.25wmf13/includes/MediaWiki.php(414): FormlessAction->show()
#3 /srv/mediawiki/php-1.25wmf13/includes/MediaWiki.php(282): MediaWiki->performAction()
#4 /srv/mediawiki/php-1.25wmf13/includes/MediaWiki.php(584): MediaWiki->performRequest()
#5 /srv/mediawiki/php-1.25wmf13/includes/MediaWiki.php(435): MediaWiki->main()
#6 /srv/mediawiki/php-1.25wmf13/index.php(46): MediaWiki->run()
#7 /srv/mediawiki/w/index.php(3): include()
#8 {main}
2015-01-09 14:22:07 mw1149 enwiki: [dd140ca7] /wiki/User:Lupin/popups.js?action=raw&ctype=text%2Fjavascript   HttpError from line 942 of /srv/mediawiki/php-1.25wmf13/includes/WebRequest.php: Invalid file extension found in the path info or query string.
#0 /srv/mediawiki/php-1.25wmf13/includes/actions/RawAction.php(61): WebRequest->checkUrlExtension()
#1 /srv/mediawiki/php-1.25wmf13/includes/actions/FormlessAction.php(43): RawAction->onView()
#2 /srv/mediawiki/php-1.25wmf13/includes/MediaWiki.php(414): FormlessAction->show()
#3 /srv/mediawiki/php-1.25wmf13/includes/MediaWiki.php(282): MediaWiki->performAction()
#4 /srv/mediawiki/php-1.25wmf13/includes/MediaWiki.php(584): MediaWiki->performRequest()
#5 /srv/mediawiki/php-1.25wmf13/includes/MediaWiki.php(435): MediaWiki->main()
#6 /srv/mediawiki/php-1.25wmf13/index.php(46): MediaWiki->run()
#7 /srv/mediawiki/w/index.php(3): include()
#8 {main}

There seems to be a variation on these going through the works...

Event Timeline

Reedy raised the priority of this task from to Needs Triage.
Reedy updated the task description. (Show Details)
Reedy added a project: MediaWiki-General.
Reedy subscribed.
Aklapper triaged this task as Medium priority.Jan 9 2015, 3:30 PM
brooke claimed this task.
brooke subscribed.

Use index.php or better yet, the API.

Just tacking ?action=raw on the end of a page view URL will often hit security checks for old insecure browsers that do bad type sniffing.

Aklapper renamed this task from Invalid file extension found in the path info or query string. to "Invalid file extension found in the path info or query string" error for page names with dots when using "/wiki/" instead of "/w/index.php?title=".Sep 14 2017, 6:05 PM
Aklapper removed brooke as the assignee of this task.
Aklapper added a subscriber: gandaro.