Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-17754

Adding a MIME-type to attachment.download.blacklist doesn't work with attachment added with PR

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 10.11.8, 11.10.4, 12.7
    • Fix Version/s: None
    • Component/s: Old Core
    • Labels:
      None
    • Environment:
      Mozilla Firefox 80.0.1, Google Chrome 85.0.4183.83
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      Steps to reproduce:

      • Go to xwiki.properties
      • open WEB-INF/xwiki.properties and go to the Attachment section
      • uncomment the line with the default backlist and add to it a MIME-type , e.g.: application/pdf or image/png
      • save the modifications and restart the server
      • Go to in the wiki and open a page with an attachment pdf if you added application/pdf or a png image if you added image/png

      Make sure you don't force the pdf files to be automatically downloaded from your browser's setting.

      Expected results:

      • The attachment is downloaded

      Actual results

      • The attachment is opened in browser

        Attachments

          Activity

            People

            • Assignee:
              surli Simon Urli
              Reporter:
              andreic Camelia Andrei
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Date of First Response: