Dominicbm created this task.
Dominicbm added projects: Wikidata-Query-Service, StructuredDataOnCommons.
Restricted Application added a subscriber: Aklapper.

TASK DESCRIPTION
  WCQS's authentication method has created a serious usability issue. I 
frequently run into this error:
  
  > Application Connection Error
  > This request has already been completed and cannot be resubmitted. Go back 
to the application and try to connect your account again, or contact the 
application author.
  >
  > OAuth token already used, E009
  >
  > Return to Main Page.
  
  https://www.mediawiki.org/wiki/Help:OAuth/Errors#E009
  
  This happens usually when I reload a closed browser tab with a WCQS query. 
What is frustrating about this is (1) I am not logged out of WCQS. I can 
navigate to WCQS in a new tab and run a query without re-authenticating in 
OAuth. (2) The way the error is handled makes it impossible to recover the 
query I was running, which is annoying, since WCQS does not allow you to save 
queries like Quarry. The query code is in the URL, but the error page itself 
does not allow you to reauthenticate, and the link in the error will only 
return you to the Commons main page, not even WCQS.
  
  As an example, when I get the error, I am redirected to a URL like this:
  
  
`https://commons.wikimedia.org/wiki/Special:OAuth/authenticate?oauth_token=3bd745b02f379a07ccf0df9cc685b3c0#SELECT%20%3Fdpla%20%3Fid%20%3Fdate_modified%20WHERE%20%7B%0A%20%20%3Fdpla%20wdt%3AP760%20%3Fid%3B%0A%20%20%20%20schema%3AdateModified%20%3Fdate_modified%20.%0A%20%20BIND%20%28now%28%29%20-%20%3Fdate_modified%20as%20%3Fdate_range%29%0A%20%20FILTER%20%28%3Fdate_range%20%3E%20100%29%0A%7D%20ORDER%20BY%20ASC%28%3Fdate_modified%29`
  
  If I simply replace the first part of the URL (everything before the `#`) 
with `https://commons-query.wikimedia.org/` and load that URL, it works as 
expected, without any actual issue with the authentication. Of course, no user 
would know to do that, so this is quite a frustrating occurrence, and the error 
message here seems like it is not serving whatever intended purpose it was 
designed for, if it can be circumvented in that way.
  
  F34950941: Screen Shot 2022-02-14 at 12.10.18 AM.png 
<https://phabricator.wikimedia.org/F34950941>

TASK DETAIL
  https://phabricator.wikimedia.org/T301650

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Dominicbm
Cc: Aklapper, Dominicbm, MPhamWMF, FRomeo_WMF, CBogen, Nintendofan885, JKSTNK, 
Namenlos314, Gq86, Lucas_Werkmeister_WMDE, EBjune, merbst, Jonas, Xmlizer, 
jkroll, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, Lydia_Pintscher
_______________________________________________
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org

Reply via email to