Uploaded image for project: 'Errai'
  1. Errai
  2. ERRAI-663

ErraiBus lifecycle does no longer behave according to documentation

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: 3.0.0.M1, 2.4.1.Final
    • Fix Version/s: 3.0.0.M2
    • Component/s: None
    • Labels:
      None

      Description

      There is extensive documentation on BusLifeCycleListener. Unfortunately, it's no longer correct. Here's an example scenario where the server-side bus returns an error and the client executes all kind of state transitions that according to the docs should never happen (e.g. directly from OFFLINE to ONLINE):

      <<user logs in to tab 1>>
      [INFO] [app] - Module app has been loaded
      [INFO] [app] - Bus is associating
      [INFO] [app] - Bus is now online
      <<user logs in to tab 2>>
      <<user logs out of tab 2, resulting in tab 1 also being unauthenticated>>
      <<user takes action in tab 1 that would perform an RPC call over the errai bus>>
      [INFO] [app] - Transport error: 401
      [INFO] [app] - Bus is now offline
      [INFO] [app] - Transport error: 401
      [INFO] [app] - Transport error: 401
      [INFO] [app] - Transport error: 401
      [INFO] [app] - Transport error: 401
      <<user logs in to tab 2, resulting in tab 1 once again being valid>>
      [INFO] [app] - Bus is disassociating
      [INFO] [app] - Transport error: 401
      [INFO] [app] - Bus is associating
      [INFO] [app] - Bus is now online
      [INFO] [app] - Bus is now offline
      [INFO] [app] - Bus is now online

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                csa Christian Sadilek
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: