Logging out should not fail if we are already logged out

Ouverte
#511 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
35/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
À l'abandon
Stack technique
java
Domaine
backend

Piste de recherche

The report points to the login call using the assertuser option, but names no source file or test. Start by tracing the logout and login handling for Wikidata and find where an expired session causes the action to fail. Done means logging out after the session expires lets the app return to a state where the user can log in again.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

bug good first issue

Originally posted at https://github.com/OpenRefine/OpenRefine/issues/2873 by @addshore

Describe the bug

If I am logged into wikidata, but my session expires or I get logged out for some reason I can not use the log out button in the app.

Current Results

When I do click logout I see the following in the console and the app continues to think that I am logged in.

17:33:56.920 [                   refine] GET /command/wikidata/login (9487ms)
17:33:56.948 [                   refine] POST /command/core/get-all-preferences (28ms)
17:33:58.792 [                   refine] GET /command/core/get-csrf-token (1844ms)
17:33:58.807 [                   refine] POST /command/wikidata/login (15ms)
17:33:59.078 [      connection_mananger] [assertuserfailed] You are no longer logged in, so the action could not be completed. (271ms)

This is probably due to the assertuser option being used for this login call?

Expected behaviour

Clicking the logout button in this situation should detect that I am no longer logged in and thus allow me to re login to the app.

Screenshots

Stuck here in the app, can not log out

image

Desktop:

  • OS: Windows 10
  • Browser Version: Firefox 76.0.1 (64-bit)
  • JRE or JDK Version:
java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)

OpenRefine :

  • Version 3.3
Langage dominant
Java
Étoiles
412
Forks
116
Merge moyen
3 j 23 h
PR mergées (30 j)
2

Préparer son environnement

Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de Wikidata-Toolkit/Wikidata-Toolkit

Toutes les issues de Wikidata-Toolkit/Wikidata-Toolkit

Issues similaires

Plus d'issues Java

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.