You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Renaming a file with a slash in the filename makes the file inaccessible (dataloss) #1893
@kulmann Asessing as P2, because if I rename the file, I can not download it any more and renaming it back to a proper name is also not possible -> dataloss.
changed the title [-]Cant create, upload or download files with "\" in filename - missing validation?[/-][+]Ranming a file with a slash in the filename makes the file inaccessible (dataloss)[/+]on Jan 28, 2026
changed the title [-]Ranming a file with a slash in the filename makes the file inaccessible (dataloss)[/-][+]Renaming a file with a slash in the filename makes the file inaccessible (dataloss)[/+]on Jan 28, 2026
I tried with my local dev setup and couldn't reproduce the issue. File names with any special chars (except forward-slashes, those are forbidden) can be opened/edited/deleted without a problem.
However, on the demo instance as well as locally with our compose project I can reproduce this error, not only with a backslash \, but also with a hash # in the filename. I think this should work though? @micbar@rhafer do you have any insight, maybe somehow related to the storage?
create lcoal file bla\bla
upload bla\bla (drag and drop or via "upload"
error: "Parent folder does not exist"
The error message is very misleading indeed, the web client shows it on every 412 error. We should adjust that.
This is not a OpenCloud problem but a problem with Traefik + OpenCloud in conjunction. Since Traefik 3.6.4 we need to configure the allowed encoded characters (opencloud-eu/opencloud-compose#173) and back slash was not part of the list yet. Fixing it in our opencloud-compose project.
I was also looking into that from the server perspective. Backslashes are actually forbidden by default in our config, but that validation apparently only happens for new files, not for files being renamed.
I'm not sure if we want to keep it forbidden moving forward, but I'll try to enable the validator for renames as well regardless.
Yeah, there are still quite some inconsistencies in the server as well as in the client. E.g. for spaces we don't allow backslashes on the client side, but for normal files and folders we do.
@tbsbdr wanted to align with the Desktop client so we can create some common ground here. So the main p2 issue is fixed IMO, but there is still follow-up work to do.
We decided not having back slashes in resource names, this was already half-way implemented in the backend, the front-end validation has been adjusted: #1916
Activity
tbsbdr commentedon Jan 28, 2026
@kulmann Asessing as P2, because if I rename the file, I can not download it any more and renaming it back to a proper name is also not possible -> dataloss.
[-]Cant create, upload or download files with "\" in filename - missing validation?[/-][+]Ranming a file with a slash in the filename makes the file inaccessible (dataloss)[/+][-]Ranming a file with a slash in the filename makes the file inaccessible (dataloss)[/-][+]Renaming a file with a slash in the filename makes the file inaccessible (dataloss)[/+]JammingBen commentedon Jan 29, 2026
I tried with my local dev setup and couldn't reproduce the issue. File names with any special chars (except forward-slashes, those are forbidden) can be opened/edited/deleted without a problem.
However, on the demo instance as well as locally with our compose project I can reproduce this error, not only with a backslash
\, but also with a hash#in the filename. I think this should work though? @micbar @rhafer do you have any insight, maybe somehow related to the storage?The error message is very misleading indeed, the web client shows it on every
412error. We should adjust that.AlexAndBear commentedon Feb 2, 2026
This is not a OpenCloud problem but a problem with Traefik + OpenCloud in conjunction. Since Traefik 3.6.4 we need to configure the allowed encoded characters (opencloud-eu/opencloud-compose#173) and back slash was not part of the list yet. Fixing it in our opencloud-compose project.
opencloud-eu/opencloud-compose#211
v-scharf commentedon Feb 2, 2026
opencloud also has problems with backslash:
I tested it on opencloud binary
see here opencloud#2239
\- works ✅️ with spaces dav path, doesn't work ❌️ with new or old dav path\- doesn't work ❌️\- works ✅️ with spaces dav path, doesn't work ❌️ with new or old dav path\- doesn't work ❌️aduffeck commentedon Feb 2, 2026
I was also looking into that from the server perspective. Backslashes are actually forbidden by default in our config, but that validation apparently only happens for new files, not for files being renamed.
I'm not sure if we want to keep it forbidden moving forward, but I'll try to enable the validator for renames as well regardless.
JammingBen commentedon Feb 2, 2026
Yeah, there are still quite some inconsistencies in the server as well as in the client. E.g. for spaces we don't allow backslashes on the client side, but for normal files and folders we do.
@tbsbdr wanted to align with the Desktop client so we can create some common ground here. So the main p2 issue is fixed IMO, but there is still follow-up work to do.
Consistently verify names when creating/moving files/dirs
AlexAndBear commentedon Feb 2, 2026
We decided not having back slashes in resource names, this was already half-way implemented in the backend, the front-end validation has been adjusted: #1916
Consistently verify names when creating/moving files/dirs
Consistently verify names when creating/moving files/dirs (#514)