xwikisas / application-filemanager

XWiki application to manage a hierarchy of folders and files
GNU Lesser General Public License v2.1
0 stars 4 forks source link

Issues with special chars in the names of office files #93

Open ane-gabriela opened 9 months ago

ane-gabriela commented 9 months ago

It seems that the ticket Files with punctuation marks can't be accessed fixed only the PDF files with special chars issue. The office files with special chars and the attachments section of videos and mp3 remain.

Steps to reproduce:

  1. Click on File Manager
  2. Upload office files and mp4 with special characters ex. the name of the file should be "Te$t with #special + ch@rs - test. It's ^a test! Test ~1 = and (2) & {3}, [4]. 100% a test 1; 2` 3; 5. and 10 spaces." https://up1.xwikisas.com/#CFSVxNrKPjbBddzT6ZfdTA
  3. Access the uploaded file
  4. Click on Attachments

Expected results: The document uploaded is shown in the wiki page and in the attachments section.

Actual results:

  1. The mp4 and mp3 files are working but the office documents aren't shown at all "Failed to execute the [office] macro. Cause: [Attachment [Attachment xwiki:FileManager.Te$t with #special + ch@rs - test. It's ^a test! Test ~1 = and (2) & {3}, [4]. 100% a test 1; 23; 5\. and 10 spaces\.\.docx@Te$t with #special + ch\@rs - test. It's ^a test! Test 1 = and (2) & {3}, [4]. 100% a test 1; 2 3; 5. and 10 spaces..docx] does not exist.]. Click on this message for details." Doc with special chars

  2. For the office docs and also the mp4 and mp3 files the attachments tab is empty and the following error appears "Updating the entries failed for an unknown reason." Video with special chars Attachments Are Empty

  3. There are many errors and warnings in the wiki console while uploading and accessing this documents https://up1.xwikisas.com/#9KtaPAAmrgff2Zo1yI5glg

Environment: XWiki 14.10.18, File Manager Application (Pro) 2.6.1, Chrome 119, Windows 11

ane-gabriela commented 2 months ago

Issue reproducing on Cloud XWiki 1510.8 and local instance, File Manager Application (Pro) 2.8, Chrome 125, Windows 11

XLSXFileManager

In the local wiki console 2024-06-12 16:53:55,093 [qtp1413246829-69 - http://localhost:8080/xwiki/bin/view/FileManager/Te%24t%20with%20%23special%20%2B%20ch%40rs%20-%20test.%20It's%20%5Ea%20test!%20Test%20~1%20%3D%20and%20(2)%20%26%20%7B3%7D%2C%20%5B4%5D.%20100%25%20a%20test%201%3B%202%60%203%3B%205.%20%20%20%20%20%20%20%20%20%20and%2010%20spaces..xlsx] ERROR o.a.v.rendering - Left side ($paths.length) of comparison operation has null value at xwiki:FileManagerCode.RecentFilesMacro[line 5, column 21]

DOCXFM

PPTFM

PPTXFM