ONLYOFFICE / DocumentServer

ONLYOFFICE Docs is a free collaborative online office suite comprising viewers and editors for texts, spreadsheets and presentations, forms and PDF, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.
https://www.onlyoffice.com
GNU Affero General Public License v3.0
4.79k stars 1.08k forks source link

When inserting a field matching a custom prop in a docx file, refreshing the value throws an error #2535

Open raphaelbadawi opened 9 months ago

raphaelbadawi commented 9 months ago

This issue is unique.

Operating System

Linux (RPM package)

Version information

7.5.1.23 (flatpak)

Expected Behavior

When clicking "Refresh the field" in the contextual menu of a field: image

the value should be refreshed and if it has not changed, still shows.

Actual Behavior

If the field displays a custom prop value, the following error will occur when trying to refresh it: image

Reproduction Steps

  1. Create a docx file with Word or LibreOffice, here in LibreOffice 7.1.8.1 the tab to set a custom property is found in File > Properties > Custom Properties : image
  2. Insert > Field > Other fields (Ctrl + F2) > Document info tab : Select the newly created custom property to display it in the document : image
  3. Save the docx file and open it with OnlyOffice, the value shows at first but the error will occur when trying to refresh it

Additional information

I suspect there is a mishap when desktop editor tries to read this XML tag: image

maruacat commented 9 months ago

Hello, @raphaelbadawi I can confirm - this is bug, so I created issue #65784. The issue reproduced in Document Server. Thank you for the report.

lea-aglz commented 7 months ago

Hello, I have retried to use this function with only Office 8, and there are another problem.

  1. I created a ODT file with LibreOffice. The tab to set a custom property is found in File > Properties > Custom Properties
  2. Insert > Field > Other fields (Ctrl + F2) > Document info tab : Select the newly created custom property to display it in the document
  3. After saving the docx file and opening with Only Office. The fiels was not detected. When I changed the character string, saved, and reopened it in Libre Office, the filed was not detected, and the custom property that I had set up earlier had disappeared. PS : This problem only occurs with ODT docucments, not DOCX.
cpot commented 7 months ago

This is a very severe bug

maruacat commented 7 months ago

Hello, I have retried to use this function with only Office 8, and there are another problem.

  1. I created a ODT file with LibreOffice. The tab to set a custom property is found in File > Properties > Custom Properties
  2. Insert > Field > Other fields (Ctrl + F2) > Document info tab : Select the newly created custom property to display it in the document
  3. After saving the docx file and opening with Only Office. The fiels was not detected. When I changed the character string, saved, and reopened it in Libre Office, the filed was not detected, and the custom property that I had set up earlier had disappeared. PS : This problem only occurs with ODT docucments, not DOCX.

Hello @lea-aglz! Thanks for the report. I have checked the information, the problem you described is related to the conversion of the ODT file when opening it in ONLYOFFICE, and this problem is not related to the error displayed in the field when updating it. Therefore, I ask you to create a new separate issue about losing a field in ODT when opening it in ONLYOFFICE so that we can create and attach a separate bug to it.

maruacat commented 7 months ago

This is a very severe bug

Hello @cpot! Thanks for reaching out. I added your request to the issue #65784.

lea-aglz commented 7 months ago

@maruacat Thank you for your answer. I have opened an issue : https://github.com/ONLYOFFICE/DocumentServer/issues/2616