Last modified: 2014-06-25 19:07:03 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 T68485, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 66485 - runJobs not following redirect
runJobs not following redirect
Status: UNCONFIRMED
Product: MediaWiki
Classification: Unclassified
JobQueue (Other open bugs)
1.23.0
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-11 15:53 UTC by ryan.glasnapp
Modified: 2014-06-25 19:07 UTC (History)
3 users (show)

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


Attachments

Description ryan.glasnapp 2014-06-11 15:53:07 UTC
The new Special Page for jobs doesn't follow redirects.

[runJobs] Running 1 job(s) via '/w/index.php?title=Special%3ARunJobs <snip>
[runJobs] Failed to start cron API: received 'HTTP/1.1 302 Found

I can get around it my mucking about with redirect rules, but I'd rather not do that.
Comment 1 Jesús Martínez Novo (Ciencia Al Poder) 2014-06-12 14:23:58 UTC
In my 1.23.0 installation it doesn't return a 302, and my wiki has $wgLanguageCode = "es", so normally request to Special: go to Especial:, but it doesn't redirect for me when called internally.

excerpt of my apache error_log:

127.0.0.1 - - [12/Jun/2014:16:07:33 +0200] "POST /index.php?title=Special%3ARunJobs&tasks=jobs&maxjobs=1&sigexpiry=1402582058&signature=fbc222296801ed1d296b6656fd5c6c9d8d6bfcd4 HTTP/1.1" 202 - "-" "-"

Do you have rewrite rules or something like this configured on the server? Did you manage to get where it redirects to?
Comment 2 ryan.glasnapp 2014-06-25 14:42:02 UTC
I managed to put in a RewriteCond that catches the first entry, but it still tosses out the same error at the end because it got a 302 somewhere.
Comment 3 Jesús Martínez Novo (Ciencia Al Poder) 2014-06-25 19:07:03 UTC
You should:
* See the access_log of apache (or the webserver you use) and look for those redirects
* Set an appropriate RewriteLog and RewriteLogLevel directives to debug your rewrite rules.

You can also access that URL directly from CURL on the same server to debug where it's going to redirect you.

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


Navigation
Links