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

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 10.7
    • Fix Version/s: 11.0-rc-1
    • Component/s: Storage - File System
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      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

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

                Dates

                • Created:
                  Updated:
                  Date of First Response: