An upgrade to the timestamp library used by MediaWiki is resulting in two
changes to the handling of timestamp inputs to the action API. There will
be no change to timestamps output by the API.
All of these changes should be deployed to Wikimedia wikis with
1.34.0-wmf.10.
Historically MediaWiki has ignored timezones in supported formats that
include timestamps, treating them as if the timezone specified were UTC. In
the future, specified timezones will be honored (and converted to UTC).
Historically some invalid formats were accepted, such
as "2019-05-22T12:00:00.....1257" or "Wed, 22 May 2019 12:00:00 A potato".
Due to improved validation, these will no longer be accepted.
Support for ISO 8601 and other formats has also been improved. See
https://www.mediawiki.org/wiki/Timestamp for details on the formats that
will be supported.
_______________________________________________
Mediawiki-api-announce mailing list
Mediawiki-api-announce(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce
Hello,
I've been trying to have my user remotely sign-in through my
laravel/react site, but I've been reaching a dead-end.
After reading this post from 2017 :
https://laracasts.com/discuss/channels/general-discussion/single-sign-on-me…
I've followed the step for method 2 from:
https://www.mediawiki.org/wiki/API:Login
I've request a login token with the api with a "GET" call of
"/api.php?action=query&format=json&meta=tokens&type=login"
and received for example:
"97b2edb716fa7b13f2955c79e7f8f0205ceda2c6+\\"
Then I "POST" the result with the formData provided: (I am 100% sure
those credentials are valid as I can use them to login)
1.
action:
clientlogin
2.
username:
TestUser
3.
password: ********
4.
loginrequests:
5.
loginmessageformat:
wikitext
6.
loginreturnurl:
http://localhost:3000/
7.
logintoken:
f90d08a1b279a521d24a4f629b678bb35ceda63d+\
8.
format:
json
The response that I get back is:
{"warnings":{"main":{"*":"Unrecognized parameters: username,
password."}},"clientlogin":{"status":"FAIL","message":"The supplied
credentials could not be
authenticated.","messagecode":"authmanager-authn-no-primary"}}
What am I missing to correctly remote login a user?
Any help would be appreciated.
Daniel
Hi,
For one of my projects, I need to be able to keep the most up to date
version of wikipedia html pages for a few languages like en, zh, de, es, fr
etc. So this is done currently in two steps,
1. Listen to changes on stream API documented here
<https://wikitech.wikimedia.org/wiki/Event_Platform/EventStreams> and then
extract the page titles.
2. For each of the titles, get the latest HTML using the Wikipedia REST api
<https://en.wikipedia.org/api/rest_v1/#/Page%20content/get_page_title__title_>
and
persist the HTML.
I understand that in order to avoid the 429 (Too many requests error), we
need to make sure we limit the api request to 1 per second. Just wanted to
check if we can make requests to different languages like en.wikipedia.org,
fr.wikipedia.org etc in parallel or do those requests also need to be done
in serial manner (1 per second), in order to not hit HTTP 429 error.
Please let me know if you need more information.
--
Regards,
Aadithya
--
Sent from my iPad3
With the merge of Icb674095,[1] use of API action=logout will require a
CSRF token. This was considered a security issue, so the usual deprecation
process was not followed. See T25227[2] for details.
Clients that do not use a CSRF token with action=logout will receive a
badtoken error message ***and will not be logged out***.
This change should be deployed to Wikimedia wikis with 1.34.0-wmf.3. See
https://www.mediawiki.org/wiki/MediaWiki_1.34/Roadmap for a schedule.
Overall client impact is expected to be relatively low, as gathered
statistics indicate there are relatively few users of this API call. None
the less, maintainers should check their code for use of action=logout and
update as necessary to maintain expected operation.
[1]: https://gerrit.wikimedia.org/r/c/mediawiki/core/+/504565
[2]: https://phabricator.wikimedia.orgdo not use /T25227
<https://phabricator.wikimedia.org/T25227>
[3]: https://phabricator.wikimedia.org/T25227#4902709
--
Brad Jorsch (Anomie)
Senior Software Engineer
Wikimedia Foundation
_______________________________________________
Mediawiki-api-announce mailing list
Mediawiki-api-announce(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce
When list=allusers is used with auactiveusers, a property 'recenteditcount'
is returned in the result. In bug 67301[1] it was pointed out that this
property is including various other logged actions, and so should really be
named something like "recentactions".
Gerrit change 130093,[2] merged today, adds the "recentactions" result
property. "recenteditcount" is also returned for backwards compatability,
but will be removed at some point during the MediaWiki 1.25 development
cycle.
Any clients using this property should be updated to use the new property
name. The new property will be available on WMF wikis with 1.24wmf12, see
https://www.mediawiki.org/wiki/MediaWiki_1.24/Roadmap for the schedule.
[1]: https://bugzilla.wikimedia.org/show_bug.cgi?id=67301
[2]: https://gerrit.wikimedia.org/r/#/c/130093/
--
Brad Jorsch (Anomie)
Software Engineer
Wikimedia Foundation
_______________________________________________
Mediawiki-api-announce mailing list
Mediawiki-api-announce(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce
Hi MediaWiki Team,
I am Kristofer, a final year IT student from the University of Queensland
in Brisbane, Australia. I am currently working on my thesis titled "*Data
Quality in Wikidata over time*", which will investigate the overall
increase in data quality in Wikidata Items over the years as more
information and detail is added through the addition of more statements,
qualifiers and references.
And so, I am writing this email to ask whether it is possible for me to
fetch the entire revision history of an item through the MediaWiki API? I
understand that there is a "View History" Tab in every Wikidata Item page,
however I have not been able to find a way to access that through the API.
Older versions of an Item will allow me to show that the data quality has
steadily increased over time as more information of that item is updated.
Your help in this matter would be greatly appreciated. Thank you in advance
and I hope to hear from you soon.
Kind Regards,
Kristofer Anandita
Hi all,
I'm working on a webservice that use the Mediawiki API and I'd like to have some stats about the traffic of my api calls to the commons.wikipedia.org domain.
In particular, I'd like to have the number of GET Requests by Api-User-Agent, the number of views/edit by Api-User-Agent and the stats of the Wikipedia traffic from inbound links by a specif domain or url.
Is this possible somehow?
Thank you in advance,
Kind regards,
Viviana
The Wikimedia REST API's /page/summary response contains content_urls and
api_urls keys that provide convenience lists of various URLs of potential
interest to the consumer. These lists appear in other endpoint responses
as well, as the page summary response is transcluded in various places
throughout the REST API.
Currently, these URL strings are constructed erroneously using unencoded
page title strings. A proposed patch (
https://gerrit.wikimedia.org/r/#/c/mediawiki/services/mobileapps/+/489329/)
applies encodeURIComponent to encode these before including them in URLs.
Since this endpoint is advertised as stable[1], I'm announcing the change
here in advance. Barring any objections, the change will be deployed late
next week.
[1]
https://en.wikipedia.org/api/rest_v1/#!/Page_content/get_page_summary_title
--
Michael Holloway
Software Engineer, Reading Infrastructure