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

The files attached by default to the Sandbox pages and several other pages don't have the mime type set

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 10.6-rc-1, 9.11.8
    • 9.0-rc-1
    • Sandbox
    • Windows 10 Pro 64 bit, Chrome v.62, Firefox v.56, IE v.11, using a local instance XWiki 9.8.1 on ORACLE 11.2
    • Unit
    • Trivial
    • N/A
    • N/A
    • Code

    Description

      Issue

      Preconditions: A fresh instance of XWiki should be available.

      STEPS TO REPRODUCE:

      1. Go to Page Index > Attachments Tab
      2. From the 'Type' Drop-down box, select a file type to filter the attachments (e.g. Image)

      EXPECTED RESULTS

      The attachments are filtered properly (only the files of the selected type are displayed).

      ACTUAL RESULTS

      No file is displayed. However, the filter works for the user attached files (which have the mime type set).

      This is because the mimetype is not explicitly defined in Sandbox wiki XML which are part of the XAR package. They need to be added.

      Links

      Attachments

        1. PageIndex_Attach.jpg
          PageIndex_Attach.jpg
          135 kB
        2. PageIndex_Attach_User.jpg
          PageIndex_Attach_User.jpg
          154 kB
        3. HelpAttachments.png
          HelpAttachments.png
          394 kB
        4. after.png
          after.png
          316 kB

        Issue Links

          Activity

            People

              vmassol Vincent Massol
              iandriuta Ilie Andriuta
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: