Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-3742

Backport ExportAction from 5.4.x to 5.3.x

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Neutral
    • 5.3.13
    • None
    • None
    • None
    • Kromeriz 26
    • 1

    Description

      The reason is that the old ExportAction is setting Content-Disposition incorrectly (which causes opening of JCR exports in browser window).

      Even though this code is there:

              resource.getStream().setParameter("Content-Disposition", "attachment; filename=...");
              Page.getCurrent().open(resource, "", true);
      

      The Content-Disposition header is set just to filename=... (without attachment;). (Probably a Vaadin issue - see https://vaadin.com/forum#!/thread/85013).

      The JCR exports were disposed only because of (wrong) MIMEType application/octet-stream. After this was changed to application/xml, it behaves differently.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                rsiska Robert Šiška
                rsiska Robert Šiška
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - 0d
                      0d
                      Logged:
                      Time Spent - 0.5h
                      0.5h