Page MenuHomePhabricator

Special:NewPages ignores parameters
Closed, InvalidPublic

Description

Special:NewPages ignores parameters set in the URL, particularly, username, whether submitted by form or manually, in the address bar.

In /includes/specials/SpecialNewpages.php SpecialNewpages::$opts have NULL values for all options; they are never filled.

The issue arose after upgrade to MW 1.25.1 from 1.24.2; maintenance/update.php has been run. The PHP engine is HHVM 3.7.1.

Nothing really useful in debug info except the fact that the query parametres never get set.

Event Timeline

alex-mashin raised the priority of this task from to Needs Triage.
alex-mashin updated the task description. (Show Details)
alex-mashin added a subscriber: alex-mashin.
Aklapper renamed this task from Special:NewPages ignores parametres to Special:NewPages ignores parameters.Jun 1 2015, 10:02 AM

Has this been brought up on the MediaWiki.org Support Desk? I'm just wondering if other users have also run into this problem...

If your wiki is public, please provide a link to it so we can see it happening

Also, check in server logs or in a debug log that the parameters are actually arriving to mediawiki and not being lost in some obscure rewrite-rule your server could be applying.

Aklapper changed the task status from Open to Stalled.Jun 11 2015, 1:05 PM

Hi @alex-mashin. Please reply to the last two comments.

Has this been brought up on the MediaWiki.org Support Desk? I'm just wondering if other users have also run into this problem...

Honestly, I thought this is Mediawiki's support desk.

Also, check in server logs or in a debug log that the parameters are actually arriving to mediawiki and not being lost in some obscure rewrite-rule your server could be applying.

<!-- Debug output:
0.0224 0.8M Start request GET /wiki/%D0%A1%D0%BB%D1%83%D0%B6%D0%B5%D0%B1%D0%BD%D0%B0%D1%8F:%D0%9D%D0%BE%D0%B2%D1%8B%D0%B5_%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D1%8B?namespace=0&amp;tagfilter=&amp;username=Tester2

So, username parametre reaches HHVM and MediaWIki.

If your wiki is public, please provide a link to it so we can see it happening

http://traditio-ru.org/wiki/Special:NewPages?namespace=0&username=Orso

There's a problem with your rewrite rules here.

Compare:

  • short URL scheme. Form fields are reset to defaults
  • normal URL scheme (with index.php parameters): Form fields are populated according to the input specified, and it displays the expected results.

Indeed, there was an ? at the end of nginx rewrite rule. I don't know what I was thinking when I put it there. I'm at a loss what could mask this error under MW 1.24.2 and previous versions.

Thanks for the help and sorry for bothering you.