Skip to content

Cannot work with office files on pages with quotation marks in title #60

@petrenkonikita112263

Description

@petrenkonikita112263

Describe the bug
Due to the presence of " in page reference name, it's impossible to work with documents in OO extension.

Steps to reproduce
Prerequisites:

  • XWiki 14.10 or higher
  • Latest version of Only Office Connector (for reported date is v2.4.2)
  • Trial license
  • Name Strategy such as

Image

Steps to reproduce the problematic behavior:

  1. Create a page with " in the name such as Page with "quotes"
  2. Attach any office document as attachment to that page (i.e file-sample_100kB.docx)
  3. Trigger modification of that office document from edit button (attachment section)
  4. See error

Actual behavior
You're ending with infinite load of Only Office Connector and error in dev console Unexpected identifier 'quotes' in DOC_REFERENCE: Sandbox.Another page with "quotes".WebHome

Expected behavior
Document is loaded for editing.

Screenshots

Image

Environment (please complete the following information):

  • OS: W11Pro
  • Browser MS Edge
  • XWiki version 14.10+
  • App version 2.4.2

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions