Hi, you are invited to join the next Tech Talk:
MediaWiki 1.22 Release Plan with Mark Hershberger and Markus Glaser
Wednesday, October 9, 2013, 19:00 UTC, 1 h http://www.timeanddate.com/worldclock/fixedtime.html?iso=20131009T19&p1=...
Google Hangout for active participants YouTube stream availablea and archived. IRC: #wikimedia-devconnect
https://www.mediawiki.org/wiki/Meetings/2013-10-09
Reminder: this Tech Talk is about to start.
On 10/04/2013 10:48 AM, Quim Gil wrote:
Hi, you are invited to join the next Tech Talk:
MediaWiki 1.22 Release Plan with Mark Hershberger and Markus Glaser
Wednesday, October 9, 2013, 19:00 UTC, 1 h http://www.timeanddate.com/worldclock/fixedtime.html?iso=20131009T19&p1=...
Google Hangout for active participants YouTube stream available and archived. IRC: #wikimedia-dev
Hi,
I'm trying to set a user's "realname" option on a local wiki (1.21.1) using the API. I can login successfully, confirm my login token fine and then I can get the options token and make the call to change options using the token.
I get "Success" returned when I change the realname (or any other valid option such as password etc). But when I look in the user's preferences, or directly in the user db table there's nothing changed.
Is there something else I need to configure? or is this a bug?
Aran
Hi Aran,
On Wed, 2013-10-09 at 16:53 -0300, Aran wrote:
I'm trying to set a user's "realname" option on a local wiki (1.21.1) using the API. I can login successfully, confirm my login token fine and then I can get the options token and make the call to change options using the token.
I get "Success" returned when I change the realname (or any other valid option such as password etc). But when I look in the user's preferences, or directly in the user db table there's nothing changed.
Could you provide the exact command, so somebody else could try to reproduce?
andre
(Also, for future reference, please avoid replying to other emails and replacing the subject line with your topic. Start a new thread instead.)
My command was:
action => 'options', token => $token, format => 'xml', change => 'realname=Foo Bar'
Which resulted in success but did nothing.
On 10/10/13 06:22, Andre Klapper wrote:
Hi Aran,
On Wed, 2013-10-09 at 16:53 -0300, Aran wrote:
I'm trying to set a user's "realname" option on a local wiki (1.21.1) using the API. I can login successfully, confirm my login token fine and then I can get the options token and make the call to change options using the token.
I get "Success" returned when I change the realname (or any other valid option such as password etc). But when I look in the user's preferences, or directly in the user db table there's nothing changed.
Could you provide the exact command, so somebody else could try to reproduce?
andre
(Also, for future reference, please avoid replying to other emails and replacing the subject line with your topic. Start a new thread instead.)
The real name isn't actually an option, it's a field in the user table. Special:Preferences handles it specially.
Your API command does correctly set a "realname" option, and it can be fetched using api.php?format=jsonfm&action=query&meta=userinfo&uiprop=options, but as you've noted that doesn't affect the realname field in the user table (and therefore anything else that actually uses the realname).
On Thu, Oct 10, 2013 at 8:04 AM, Aran aran@organicdesign.co.nz wrote:
My command was:
action => 'options', token => $token, format => 'xml', change => 'realname=Foo Bar'
Which resulted in success but did nothing.
On 10/10/13 06:22, Andre Klapper wrote:
Hi Aran,
On Wed, 2013-10-09 at 16:53 -0300, Aran wrote:
I'm trying to set a user's "realname" option on a local wiki (1.21.1) using the API. I can login successfully, confirm my login token fine and then I can get the options token and make the call to change options using the token.
I get "Success" returned when I change the realname (or any other valid option such as password etc). But when I look in the user's preferences, or directly in the user db table there's nothing changed.
Could you provide the exact command, so somebody else could try to reproduce?
andre
(Also, for future reference, please avoid replying to other emails and replacing the subject line with your topic. Start a new thread instead.)
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
I see, so is there any way to update user preferences such as real name and password via the API or has that not yet been implemented?
On 10/10/13 11:29, Brad Jorsch (Anomie) wrote:
The real name isn't actually an option, it's a field in the user table. Special:Preferences handles it specially.
Your API command does correctly set a "realname" option, and it can be fetched using api.php?format=jsonfm&action=query&meta=userinfo&uiprop=options, but as you've noted that doesn't affect the realname field in the user table (and therefore anything else that actually uses the realname).
On Thu, Oct 10, 2013 at 8:04 AM, Aran aran@organicdesign.co.nz wrote:
My command was:
action => 'options', token => $token, format => 'xml', change => 'realname=Foo Bar'
Which resulted in success but did nothing.
On 10/10/13 06:22, Andre Klapper wrote:
Hi Aran,
On Wed, 2013-10-09 at 16:53 -0300, Aran wrote:
I'm trying to set a user's "realname" option on a local wiki (1.21.1) using the API. I can login successfully, confirm my login token fine and then I can get the options token and make the call to change options using the token.
I get "Success" returned when I change the realname (or any other valid option such as password etc). But when I look in the user's preferences, or directly in the user db table there's nothing changed.
Could you provide the exact command, so somebody else could try to reproduce?
andre
(Also, for future reference, please avoid replying to other emails and replacing the subject line with your topic. Start a new thread instead.)
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
On Thu, Oct 10, 2013 at 11:13 AM, Aran aran@organicdesign.co.nz wrote:
I see, so is there any way to update user preferences such as real name and password via the API or has that not yet been implemented?
There is no way to do it at this time.
This should probably be filed as a bug if it isn't already.
Brad submitted a patch: https://gerrit.wikimedia.org/r/#/c/88995/
On 2013-10-10 9:17 AM, Brad Jorsch (Anomie) wrote:
On Thu, Oct 10, 2013 at 11:13 AM, Aran aran@organicdesign.co.nz wrote:
I see, so is there any way to update user preferences such as real name and password via the API or has that not yet been implemented?
There is no way to do it at this time.
We should really deprecate the real name column and migrate it to a realname option. I see no reason/behavior that would require it to be separate from the options besides it historically being a column (likely since we didn't have good options based preferences at that time).
Password change will probably need a new module.
~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://danielfriesen.name/]
wikitech-l@lists.wikimedia.org