You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Syncing local citations to Wikidata fail if username and password are used.
To Reproduce
Create Zotero item for Wikidata Sandbox 1, with QID Q4115189
Locally, add citation to Wikidata Sandbox 2, with QID Q13406268
Sync citations with Wikidata using your Wikidata account username and password
Expected behavior
The corresponding "cites work" statement should be created in Wikidata. Instead, a "Some changes could not be uploaded" error is shown.
Screenshots
Environment:
Zotero version: Zotero 7
Cita version: zotero7 development branch
OS name and version: Linux
Additional context
Note that edits do succeed if done anonymously (i.e., no username and password given).
The error seems to originate in wikibase-edit's login.js, here. res.headers.get('set-cookie') returns null.
My guess is that this may be related to wikibase-edit no longer using cross-fetch since v7. See maxlath/wikibase-edit@5959717
We used to have a cross-fetch patch that addressed the fact that parsing set-cookies headers was failing. This was reported to wikibase-edit here: maxlath/wikibase-edit#62
The text was updated successfully, but these errors were encountered:
Note that Zotero's debug console is showing multiple Some cookies are misusing the recommended “SameSite“ attribute warnings apparently linked to our requests to Wikidata's API.
Because these are just warnings, I don't think they are related to this bug. However, it may be worth it reporting them to wikibase-edit if they persist after we have solved this issue, as it may become a problem in the future, as mentioned in the warning.
Describe the bug
Syncing local citations to Wikidata fail if username and password are used.
To Reproduce
Expected behavior
The corresponding "cites work" statement should be created in Wikidata. Instead, a "Some changes could not be uploaded" error is shown.
Screenshots
Environment:
Additional context
Note that edits do succeed if done anonymously (i.e., no username and password given).
The error seems to originate in wikibase-edit's
login.js
, here.res.headers.get('set-cookie')
returnsnull
.My guess is that this may be related to wikibase-edit no longer using cross-fetch since v7. See maxlath/wikibase-edit@5959717
We used to have a cross-fetch patch that addressed the fact that parsing set-cookies headers was failing. This was reported to wikibase-edit here: maxlath/wikibase-edit#62
The text was updated successfully, but these errors were encountered: