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.84k stars 702 forks source link

Long path names break Collabora #8217

Open botsarenthuman opened 8 months ago

botsarenthuman commented 8 months ago

Describe the Bug

Using Nextcloud, If you have a deeply nested file, and then exceed a certain character count in the filename, Collabora will refuse to load the file.

Steps to Reproduce

  1. Get a nested path with close to 400 combined chars
  2. Name the file to put the length over 400
  3. Collabora will not load the file
  4. Collabora will throw a 400 on

POST /browser/e09a622/cool.html?WOPISrc=https%3A%2F%2FYOURSITE%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F30879_ocmymx7yhk9m&title=SOMEFILEWITHAVERYLONGNAMEWHICHWILLPUTHECHARLIMITOVER.docx&lang=en&closebutton=1&revisionhistory=1:1 400 (Bad Request)

Expected Behavior

There should at least be a warning saying the path name is too long.

This is on the latest nextcloud AIO.

Tex2002ans commented 8 months ago

Hey @botsarenthuman , could you also include your:

Side Note: And great catch. I tend to have hugely nested folders + very descriptive filenames too. Quite often, I run across this with Windows's default filename limits, so my file "refuses to rename" or Windows auto-converts it into ALLCAPSNAME~1.ODT on transfer.