Uploaded image for project: 'Admincentral'
  1. Admincentral
  2. ADMINCTR-395

Exporting / downloading magnolia app content triggers "unload"-Event of page window

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 6.2.27
    • None

    Description

      Steps to reproduce

      1. register java script function for page window event "unload"
      2. download some content from admincentral (asset, translations, yaml/xml from jcr browser...)

      .. Logs, screenshots, gifs...

      Expected results

      • the java-script function registered for the unload event is NOT called
      • downloading some content (file) should not trigger the same java-script page events as closing the browser tab

      Actual results

      • the java-script function registered for the unload event IS called
      • Within the java-script function I cannot distinguish between a download and closing the browser tab

      Workaround

      • setting a marker session attribute when executing an export command and do not execute "unload"-function if present
      • not a got idea because this meeas to overwrite several commands in several modules

      Development notes

      For our use case (invalidate magnolia session when closing the browser or it's tab) this has the effect that the user get's logged out when exporting some content.

      Any suggestions for an alternative implementation?

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              wolfbubenik Wolf Bubenik
              Joerg von Frantzius, Wolf Bubenik
              AuthorX
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: