Skip to content

File isn't shown when it contains a comma in the title #136

Description

@ane-gabriela

Preconditions:
The office server needs to be configured and connected to the XWiki instance. Add attachments to the page used (doc, docx, xls, xlsx, ppt, pptx, and pdf) that have special characters in the title.

Steps to reproduce:

  1. Edit a page
  2. Click on Insert > Other macros
  3. Search and select View Files
  4. In the "att--filename" text box add the name of a file from the attachments section, including the file extension eg. "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."
  5. Click on Submit
  6. Click on Save & View

Expected results: The document selected is shown in the wiki page.

Actual results: Because of the comma , the title of the attachment is separated in 2 separate tabs which results in an error "Error: The document [xwiki:View Files macro.Te$t with #special + ch] does not exists or you have no access to that document." The file isn't shown.

ViewFilesMacro

Environment: Windows 11, XWiki 14.10.10 with MySQL 8.0, Chrome 114, Pro Macros 1.9

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions