hpi-schul-cloud / webdav

POC/MVP to have SC files available via WebDav
1 stars 0 forks source link

Feature/deny duplicate names #6

Closed Tratori closed 3 years ago

Tratori commented 3 years ago

Having duplicate names of files is a problem in some WEBDAV browsers so it should atleast via webDav be forbidden to create such files.

DevSchmidtchen commented 3 years ago

The same checks should probably be made when renaming a resource, maybe you could write a functions returning whether the filename is allowed and use this in createResource and renameResource and maybe the duplicate check also on moveResource.

Tratori commented 3 years ago

The same checks should probably be made when renaming a resource, maybe you could write a functions returning whether the filename is allowed and use this in createResource and renameResource and maybe the duplicate check also on moveResource.

good point :+1: