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

Allow indicating the content-type to return in the VFS API

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 12.3-rc-1
    • 12.2.1
    • VFS
    • None
    • Unknown

    Description

      Currently the VFS API use Tika to try to find a content-type to set in the response but:

      • Tika might be wrong
      • Tika never set the encoding and unfortunately by default the application server set one which might or might not be the right one depending on the file encoding (and might break it)

      Since it's not always easy to accurately find out the complete content-type for text files it should be possible to provider it in the URL.

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              tmortagne Thomas Mortagne
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: