-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Wikidata edits fail in 2.8.5 #1866
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The edits are failing for me with a
It seems to be an intermittent issue as I see a couple of successful edits (for example) from 2.8.2 itself. I suspect that we are handling the auth incorrectly and that is causing these issues. Edit: You can find all recent edits here: https://www.wikidata.org/w/index.php?hidebots=1&translations=filter&hidecategorization=1&tagfilter=wikimedia-commons-app&limit=500&days=30&enhanced=1&hideWikibase=1&title=Special:RecentChanges&urlversion=2 |
Interesting that it appeared to be intermittent! I will test again and post logs asap. |
2 of my uploads via misaochan2 (Samsung Galaxy s7, Android 8.0) successfully updated Wikidata. I logged out, and then into misaochan (which has 2FA enabled). Finally got an error. I wonder if 2FA is related? Does your account that fails to edit have 2FA enabled too, @maskaravivek ? I created a custom paste for the failure logs (with cookie headers) anyway at https://phabricator.wikimedia.org/P7498 . Gave you access @maskaravivek . I also noticed that based on the cookie headers, it seemed to think I was still logged in to Misaochan2. For some reason, despite that, the upload itself succeeds. Edit: Okay, this is really weird. Look at https://commons.wikimedia.org/wiki/File:Bulimba_Point.jpg , which I just successfully uploaded. It says I think this might be indicative of a much larger issue with our new login system, not just with Wikidata edits. :/ Error:
|
As a side note, the upload that failed to edit p18 for Vojtech - https://commons.wikimedia.org/wiki/File:Espresso_lungo_with_milk.jpg - does not encounter the same issue with the author that mine did. "User" and "author" appeared to be the same for him. His account has 2FA enabled, same with Misaochan. (We would still need to handle the wrong author problem with high priority, of course. But just wondering if there also might be another contributor to the failing edits). |
Using 2.8.2, today I tried two Wikidata uploads and both were correctly linked. No 2FA. |
Interesting, thanks for the tests @nicolas-raoul ! So it does seem like so far, the failed p18 edits have all come from accounts with 2FA enabled. @neslihanturan have you tried yours? |
I tried uploading a few images through the Nearby page and the wiki data edits were successful for all of them. My account doesn't have 2FA enabled. Can we establish that wiki data edits are working fine for everyone who doesn't have 2FA enabled? The issue with 2FA enabled account is happening because of the following snippet.
This would happen only come into picture when the As the above snippet suggests, the session can be refreshed only if the account doesn't have 2FA enabled. Essentially, refreshing a session means doing a login behind the scenes. The account util already has username and password securely stored with it so a re-login can be done without involving the user but if 2FA is enabled then this can't be done. For now, I have added log for such an occurrence. I didn't investigate time in triggering the 2FA flow from this point as our session management strategy has some known loopholes. Will be working on fixing it. Hopefully, it would fix this issue as well. Also, if the issue is happening just for 2FA enabled users then we are not in a very grave situation. However, a log of failed attempts for wiki data edits would have been helpful. |
As an update, it seems Wikidata edits have stalled completely since 14 Oct: https://www.wikidata.org/w/index.php?hidebots=1&translations=filter&hidecategorization=1&tagfilter=wikimedia-commons-app&limit=500&days=30&enhanced=1&hideWikibase=1&title=Special:RecentChanges&urlversion=2 Has anyone successfully made an edit recently? |
2/2 of my edits failed. We are releasing 2.8.6 next Mon with Send Logs, in hopes of getting logs to debug this issue. Hopefully we can fix this in 2.9. |
Atleast one successful wiki data on 2.8.5 https://www.wikidata.org/wiki/Q5635178 :) |
I also just made a successful edit to https://www.wikidata.org/wiki/Q7501447 while testing Send Logs, so I guess nothing much has changed. We just need to debug the sporadic failures. :) (I removed the edit because it was not the right pic) |
I confirm that the Wikidata |
Summary:
Wikidata edits were working in 2.8.0 but not in 2.8.2. I am unsure if they worked in 2.8.1
Steps to reproduce:
Use Nearby to upload an image in 2.8.2 and check if the p18 edit happened
Add System logs:
Will post later
Device and Android version:
Samsung Galaxy s7 Android 8.0
Commons app version:
2.8.2
Would you like to work on the issue?
No
The text was updated successfully, but these errors were encountered: