Nextcloud sync - Failed to open stream: File name too long
Describe the bug
Probably when long note name is choosen then the encrypted file name on nextcloud is very long and file cannot be uploaded. There si message "Failed to open stream: File name too long..." in my nextcloud server log.
File name was "/remote.php/webdav/Saber/af51d0da73ebda0093ed7c29aed841b5257a29d4ac3c5c06117b1877927feb863de47f5c9e4fafa207681609cf1dff87e2389b85b2d3954a989042af50c203e1bc6dfd08c46b06dff9f4aed2d6360ea0ce69fa6587a3660c6acad612e5d1c806416ba0b639aee95aa4950e792dad69ae.sbe" and nextcloud tried to upload it to file "/nxtcloud/user/files/Saber/af51d0da73ebda0093ed7c29aed841b5257a29d4ac3c5c06117b1877927feb863de47f5c9e4fafa207681609cf1dff87e2389b85b2d3954a989042af50c203e1bc6dfd08c46b06dff9f4aed2d6360ea0ce69fa6587a3660c6acad612e5d1c806416ba0b639aee95aa4950e792dad69ae.sbe.ocTransferId1430275488.part"
To reproduce
I cannot provide hints to reproduce problem. I am not able to synchronize my files to nextcloud. Files are created with zero size. I am fighting with this problem. But I noticed this error message in log and it is probably a problem in Saber app.
Expected behavior
I expect that Sabre do not allow too long notes names or the encryption of file name will not generate too long file name.
Saber version
v0.18.6
Device
- Device: Samsung Galaxy Tab S6
- OS: Android 12
Anything else?
No response
I should add that I am using quite deep folder structure for my notes and file name probably contains also Folders names. For example: /School/Students/Physics/Basic/Student Name Is long/
I seemed to have the same problem, on the android version. But I did not get any visible error. Just no sync happening. Is there any effort to fix this? This happens really quickly if you have nested folders, which is very important to me