Two things are wrong with this route
OPTIONS returns 500, so WebDAV clients can't mount it:
files branch in dav.go calls GetHome unconditionally but the auth
middleware lets OPTIONS through before authenticating.. so there is no user in the
context and GetHome comes back Unauthenticated.
root and the paths below it end up in different providers. GetHome is only
joined for the root.. everything else returns early into FilesHandler, which uses
files_namespace and no longer has the username since applyLayout returns the
namespace unchanged.
soo the folder is created and then it is not in the listing of the home it was
created in
Since the username is dropped every user lands on the same path. marie has never
created anything here:
last part is on localfs which is permissive. On EOS the driver impersonates the
end user so the ACLs would likely deny the read, but the routing is wrong either way :)
setup is a single revad with files_namespace = "/users" and
webdav_namespace = "/home", same as tests/revad/frontend.toml
Two things are wrong with this route
OPTIONS returns 500, so WebDAV clients can't mount it:
filesbranch indav.gocallsGetHomeunconditionally but the authmiddleware lets OPTIONS through before authenticating.. so there is no user in the
context and GetHome comes back Unauthenticated.
root and the paths below it end up in different providers.
GetHomeis onlyjoined for the root.. everything else returns early into
FilesHandler, which usesfiles_namespaceand no longer has the username sinceapplyLayoutreturns thenamespace unchanged.
soo the folder is created and then it is not in the listing of the home it was
created in
Since the username is dropped every user lands on the same path. marie has never
created anything here:
last part is on localfs which is permissive. On EOS the driver impersonates the
end user so the ACLs would likely deny the read, but the routing is wrong either way :)
setup is a single revad with
files_namespace = "/users"andwebdav_namespace = "/home", same as tests/revad/frontend.toml