Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-3149

403 Forbidden messages in opened task

    XMLWordPrintable

Details

    • Critical
    • Hide
      Users are getting multiple 403 Forbidden error messages.
      On instances with a lot of users not logging out, this might also happen often due a bug in removing such stalled sessions. This is fixed in 5.8.5.
      For users with unstable internet connections this was fixed in 5.8.2.
      Show
      Users are getting multiple 403 Forbidden error messages. On instances with a lot of users not logging out, this might also happen often due a bug in removing such stalled sessions. This is fixed in 5.8.5. For users with unstable internet connections this was fixed in 5.8.2.

    Description

      problem

      The "opened task check" implemented with the multi task feature TRANSLATE-2534 is complaining very often, that the current task is not open anymore.

      This results in "ERROR in core: E9999 - Keine Zugriffsberechtigung!" in the log and "Meldung vom Server: 403 Forbidden" in the UI.

      After investigation it seems that the problem occurs if someone has an unstable internet connection or where the internet connection is gone when doing a short pause.

      Due the lack of network connection the session of the user is marked as stalled in the messagebus. On periodical clean up the opened tasks of such stalled sessions are closed - which is basically needed to reopen tasks if the user was basically gone by just closing the window, losing connection or whatever.

      If the connection is restored, the websocket connection is established again, but the task remains closed.

      reproduction

      1. Use a docker setup to test.
      2. Open a task
      3. stop the proxy docker container - the UI complains about missing socket server
      4. wait for 30 seconds then call "curl -v http://localhost/editor/cron/periodical" in the php container
      5. restart the proxy docker container
      6. try to change the segment in the UI

      solution

      Reopen the task on reconnecting the socket server.

      Attachments

        Activity

          People

            tlauria Thomas Lauria
            tlauria Thomas Lauria
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: