Last modified: 2009-03-06 13:50:24 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 T19774, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 17774 - <error code="unknown_action" info="Unrecognized value for parameter &#039;action&#039;: query">
<error code="unknown_action" info="Unrecognized value for parameter &#039;act...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
Other Linux
: Normal enhancement (vote)
: ---
Assigned To: Roan Kattouw
http://www.quant-jock.net
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-03-03 18:34 UTC by Serge Karalli
Modified: 2009-03-06 13:50 UTC (History)
4 users (show)

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


Attachments

Description Serge Karalli 2009-03-03 18:34:03 UTC
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
Comment 1 Roan Kattouw 2009-03-03 19:07:44 UTC
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.
Comment 2 Brion Vibber 2009-03-04 18:19:47 UTC
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.
Comment 3 Roan Kattouw 2009-03-04 18:21:33 UTC
(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.
Comment 4 Roan Kattouw 2009-03-06 13:50:24 UTC
(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.

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


Navigation
Links