brian7704 / OpenTAKServer

Yet another open source TAK Server for ATAK, iTAK, and WinTAK
GNU General Public License v3.0
76 stars 10 forks source link

COT router appears offline when the user has been deauthorized #44

Open jakobbuis opened 2 months ago

jakobbuis commented 2 months ago

Steps to reproduce

  1. Open admin panel, sign in, close window.
  2. Wait 1-2 days or so
  3. Open admin panel again.

Expected To either be logged out, or remain logged in.

Happened I'm in the dashboard (even after an F5 refresh), but the COT Router indicator states COT offline. It isn't actually offline, as the server is functional.

image

There's a status request that says 401 Unauthorized:

image

Theory What I think is happening is that the session expired somewhere, but the frontend still believes the session is valid. I suggest either logging the user out once that 401 comes in, or making sure that session lifetimes match.

Workaround

  1. Click on Administrator
  2. Click Log out
  3. Sign in again.

This restores the working of the dashboard.

jakobbuis commented 2 months ago

AFAIK whether any EUDs are active has no effect on this bug.

jakobbuis commented 2 months ago

Just confirmed with the updater that I'm running the latest version, 1.2.1

jakobbuis commented 2 months ago

Server details: image

Browser details Using Firefox 129.0.1 on Ubuntu 24.04