CollaboraOnline / online

Collabora Online is a collaborative online office suite based on LibreOffice technology. This is also the source for the Collabora Office apps for iOS and Android.
https://collaboraonline.com
Other
1.86k stars 704 forks source link

Inserting image with spaces in the filename gives error: "the server encountered a syntax error while parsing the insertfile command" #1306

Open frknltrk opened 3 years ago

frknltrk commented 3 years ago

Describe the bug when i want to insert an image, i get this error message.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Insert'
  2. Tap on 'Local Image...'
  3. Select the image I want
  4. See the error

Expected behavior Image is supposed to be inserted successfully.

Actual behavior "The server encountered a syntax error while parsing the insertfile command".

Screenshots ScreenRecord-2021-01-24-13-37-09 (1)

Smartphone (please complete the following information)

Additional context it seems to occur only with a specific type of image like this one: https://pinterest.com/pin/414401603187877574 i don't have any problems with the other types of majority.

Ezinnem commented 3 years ago

I can confirm this issue occurs in Collabora Office 6.4.13 (git hash: 809b194f).

The error seen is because of the spaces in the name of the image selected.

@frknltrk, you edit the name of the image, removing the # signs and the spaces. The image will be inserted successfully after the name edit.

frknltrk commented 3 years ago

I can confirm this issue occurs in Collabora Office 6.4.13 (git hash: 809b194f).

The error seen is because of the spaces in the name of the image selected.

@frknltrk, you edit the name of the image, removing the # signs and the spaces. The image will be inserted successfully after the name edit.

oh, got it. thank you!

timur-g commented 1 year ago

Still in 23.05 snapshot.