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

Chinese and other UTF8 characters produce filesystem store path a lot longer (6 times longer) because of the URL encoding

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 11.0
    • 10.7
    • Storage - File System
    • None
    • Unknown
    • N/A

    Description

      Please forgive me my bad English.

      Here is my problem:

      For example,

      When I create a page which title is “测试”,data-xwiki-rest-url will display "/rest/wikis/xwiki/spaces/%E6%B5%8B%E8%AF%95/pages/WebHome".

      “测试” is encoded as “%E6%B5%8B%E8%AF%95”,but it uses more bytes.

      If one page title with more chinese characters  and contain attachment,it will fail to store the attachment in storage location ,I think the filename is over 255 bytes ,the screenshots show the error,but the chinese character title is not over 255 bytes.

      I got a job that want to mirgrate all the space from confluence to xwiki,I use the extension 'Filter Streams Converter' to do it,it seems fine but someitmes I got the problem above.

      I tried to store the attachment in DB,but the performance is not well.

      Could someone give me a solution to display file or directory name with chinese character in storage location,I‘ll very appreciate it.

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              jay_uteotw jie.lin
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: