Page MenuHomePhabricator

<error code="unknown_action" info="Unrecognized value for parameter &#039;action&#039;: query">
Closed, ResolvedPublic

Description

Author: ska44ed

Description:
I get an error when I type the following URL:
http://quant-jock.net/ttwiki/api.php5?action=query&meta=siteinfo

error:
<error code="unknown_action" info="Unrecognized value for parameter &#039;action&#039;: query">

Apparently this error is keeping me from the extension PDFBook

That is because, as I understand it, one of the first requests done by PediaPress is The API query for siteinfo. If it returns an error, they conclude that it is an invalid URL


Version: unspecified
Severity: enhancement
OS: Linux
Platform: Other
URL: http://www.quant-jock.net

Details

Reference
bz17774

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:32 PM
bzimport set Reference to bz17774.

This is expected behavior: the target wiki has $wgGroupPermissions['*']['read'] = false; , so unless you log in first or pass a valid login cookie with the request, you won't be able to run action=query.

Roan, IMO this behavior is a bit unclear.

Perhaps there should be a distinction between "I don't know what this action is" and "I know what this action is, but won't do it because you don't have permission"? It would make it much easier for people encountering it to understand what they need to do to rectify the situation.

(In reply to comment #2)

Roan, IMO this behavior is a bit unclear.

Perhaps there should be a distinction between "I don't know what this action
is" and "I know what this action is, but won't do it because you don't have
permission"? It would make it much easier for people encountering it to
understand what they need to do to rectify the situation.

Yeah, I've felt this way for a while too, especially considering hiding action=edit and friends from users who can't edit. It's behavior that Yuri added back in the old days, but since he's been gone for quite a while now that ought to not stop me anymore :D

I'll fix this up later this evening.

(In reply to comment #3)

Yeah, I've felt this way for a while too, especially considering hiding
action=edit and friends from users who can't edit. It's behavior that Yuri
added back in the old days, but since he's been gone for quite a while now that
ought to not stop me anymore :D

I'll fix this up later this evening.

Fixed both of these issues in r48091.