Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-718

Bad headers when a flash is inserted from the ressources explorer

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.6.7, 2.9.20
    • 2.6.6, 2.9.19
    • None
    • Affects Version: 2.6.5

      this bug appears on Bordeaux 3: https://issues.anyware-tech.com/browse/UBIII-580
      How to reproduce it:

      • Open a page
      • Edit it
      • Insert a Flash from the ressouces explorer
      • Save

      What happens

      • the flash is not displayed

      Required behavior:

      • the flash is displayed

      At this time we have in the headers
      Content-Disposition attachment

      It seems to be the source of the problem.

      We did a hack in /home/cms/Ametys_CMS/application/cms/modules/resources/sitemap.xmap
      We removed:
      <map:act type="set-header">
      <map:parameter name="Content-Disposition" value="attachment"/>
      </map:act>
      And the flash was played correctly

          [CMS-718] Bad headers when a flash is inserted from the ressources explorer

          Corrected by Delphine

          Raphaël Franchet added a comment - Corrected by Delphine

          Resolution proposal for AnyContent 2.9.

          Nicolas Gavalda (Inactive) added a comment - Resolution proposal for AnyContent 2.9.

          It would be wise to duplicate the "download" pipeline into a "view" pipeline for instance, removing the attachment header setting. When embedding a resource, this pipeline is to be used.
          To be fixed in all versions (2.6, 2.9, 3).

          sitemap.xmap
          <map:match pattern="view/**">
              <map:read type="utf-8-decoder" src="resource-explorer://{config:core.resources-explorer}/">
                  <map:parameter name="prefix" value="download/"/>
              </map:read>
          </map:match>
          

          Nicolas Gavalda (Inactive) added a comment - It would be wise to duplicate the "download" pipeline into a "view" pipeline for instance, removing the attachment header setting. When embedding a resource, this pipeline is to be used. To be fixed in all versions (2.6, 2.9, 3). sitemap.xmap <map:match pattern= "view/**" > <map:read type= "utf-8-decoder" src= "resource-explorer://{config:core.resources-explorer}/" > <map:parameter name= "prefix" value= "download/" /> </map:read> </map:match>

            Unassigned Unassigned
            fravetier Frederic Ravetier (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: