Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-3519

[simpleapp] once impersonated, if cause exception, and click on header, then cannot stop impersonating

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Resolved
    • 2.0.0-RC1
    • 2.0.0-RC2
    • Core
    • None

    Description

      This one is a bit weird, and is a slightly odd sequence to trigger, but is reproducible.

      Run up simpleapp.

      Login as sven

      Don't run any fixture scripts, instead just create an object 'a'.

      Navigate into a's metadata, invoke "impersonate with roles":

      Select "secman-admin".

      The current user will change to:

      so far, so good.

      Now, as secman-admin, attempt to create a simple object also called 'a'.  This triggers an exception:

      Also fine.  Press 'cancel'.

      Now stop impersonating:

       

      click on the icon top left to show home page:

      seem still to be impersonating, and can no longer "stop impersonating":

      Logout and log back in as sven.

      click on header a few times ... toggles back to impersonating.

       

      ~~~

      I've also managed to bring up a white label generic error page, but not reliably.  And I also got the app into a state where it would keep showing the red error as an orange warning; suggesting the MessageBroker was caching still somehow.

      However, if I don't create an exception while impersonating, then everything seems to behave ok.

       

      Attachments

        1. image-2023-07-04-22-58-57-970.png
          42 kB
          Daniel Keir Haywood
        2. image-2023-07-04-22-57-30-095.png
          48 kB
          Daniel Keir Haywood
        3. image-2023-07-04-22-54-13-561.png
          126 kB
          Daniel Keir Haywood
        4. image-2023-07-04-22-53-13-114.png
          9 kB
          Daniel Keir Haywood
        5. image-2023-07-04-22-48-16-698.png
          121 kB
          Daniel Keir Haywood

        Issue Links

          Activity

            People

              hobrom Andi Huber
              danhaywood Daniel Keir Haywood
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: