cs3org / reva

WebDAV/gRPC/HTTP high performance server to link high level clients to storage backends
https://reva.link
Apache License 2.0
167 stars 113 forks source link

Feature: handle symlinks #525

Open madsi1m opened 4 years ago

madsi1m commented 4 years ago

We have some owncloud users who would like to backup/sync users unix home directories which sometimes contain symlinks.

Is it possible in reva to treat symlinks as symlink files (dont resolve) and have smarts built in to have it not link to storage it isn't allowed to? Not sure where in the stack this should happen. Or if we want to allow symlinks at all.

labkode commented 4 years ago

@madsi1m the cs3apis have support for specifying that a resource is a symlink:

RESOURCE_TYPE_SYMLINK | 4 | This represents a symbolic link type if the underlying storage system supports it. Symlink target SHOULD NOT be interpreted by the clients.

So that means that the client will see only a file that is a symlink but it won't follow. However, client support for this resource type is still not supported in the ownCloud sync client for example.