Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-30416

MB Portlet file attachments with non-ascii characters

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: 6.1.1 CE GA2
    • Fix Version/s: 6.1.1 CE GA2
    • Labels:
      None
    • Environment:
      Ubuntu Server 10.04, Tomcat 7.0.27, Liferay 6.1.1 CE GA2

      Description

      When attaching files with non-ascii characters in the filename, the following exception is thrown:

      message_boards/message/554717?p_p_auth=QMKQ4g4N generates exception: javax.servlet.ServletException: com.liferay.portlet.documentlibrary.FileNameException: /messageboards/554718/554717/filename_???.docx
      13:52:42,597 ERROR [ajp-bio-8009-exec-1376][IncludeTag:154] com.liferay.portlet.documentlibrary.FileNameException: /messageboards/554718/554717/filename_???.docx
      at com.liferay.portlet.documentlibrary.store.DLStoreImpl.validate(DLStoreImpl.java:535)
      at com.liferay.portlet.documentlibrary.store.DLStoreImpl.getFileSize(DLStoreImpl.java:290)
      at com.liferay.portlet.documentlibrary.store.DLStoreUtil.getFileSize(DLStoreUtil.java:462)

      The actual filename is "filename_åäö.docx". As you can see above, the swedish characters "å, ä and ö", have been replaced by questionsmarks. The end user gets a "success" message but rendering of the message breaks and links for removing or editing the message are missing.

      Setting priority "Major" since our users extensively use swedish characters in filenames and while instructing them to use only ascii or using Related Assets (uploading works through Documents And Media portlet), it's a major usability problem for our users.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                7 years, 2 weeks, 6 days ago

                Packages

                Version Package
                6.1.1 CE GA2