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

Uploading an attachment with invalid mimetype displays an incorrect error message

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 15.0-rc-1, 14.10.1
    • 14.10
    • Attachments
    • None
    • Unit, Integration
    • Unknown
    • N/A
    • N/A

    Description

      Reproduction steps:

      • Login as a user
      • Go to a user profile
      • Go the the page administration (http://localhost:8080/xwiki/bin/admin/XWiki/WebPreferences)
      • In Content > Attachment Restriction, set a dummy allowed mimetype (e.g., abcdef)
      • Go back to the user profile
      • Upload a new attachment through the avatar attachment picker

      Expected
      An error message is displayed, informing the user that the mimetype of the attachment is not valid

      Actual
      The message {{The wiki administrators have defined a mimetype restriction for attached files. Please make sure the mimetype of the files you are trying to attach is allowed (0 bytes) and not blocked (

      {1}

      ).}} is presented to the user in page http://localhost:8080/xwiki/bin/upload/XWiki/Admin

      Attachments

        Activity

          People

            mleduc Manuel Leduc
            mleduc Manuel Leduc
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: