Repository navigation
Conversation
|
ok, so you are implementing the hidden shared folder using symbolic links. nice! The problem I see is that you are using a path to the original file in the link. What happens if the target file is moved or renamed. The link will break. :-( the eos implementation uses a dedicated 'shadow' folder that users do not have access to when bypassing reva. when accepting a share reference is created, which for eos stores the target fileid in the extended attributes: https://github.com/cs3org/reva/blob/master/pkg/storage/utils/eosfs/eosfs.go#L886-L895 when listing the shared folder the extended attributes are converted back to cs3 references: https://github.com/cs3org/reva/blob/5fb4422a44a955f244aded20ce6c68ca59452629/pkg/storage/utils/eosfs/eosfs.go#L685 note that the cs3 gateway service will exchange all cs3 references with actual file metadata. the owncloud storage driver also stores share information in the extended attributes, see https://github.com/cs3org/reva/blob/5fb4422a44a955f244aded20ce6c68ca59452629/pkg/storage/fs/owncloud/owncloud.go#L64-L122 for the dertails. If we want to implemen oc10 then we need to be able to create references anywhere in the tree. |
f16376c to
b6c10b7
Compare
|
I implemented a similar solution as in I have to review |
Signed-off-by: David Christofas <[email protected]>
b6c10b7 to
f873101
Compare
|
Finally created the upstream PR. cs3org#929 |
DON'T MERGE
The goal of this draft is to gather opinions on the implementation.
I'm working on this issue owncloud/ocis-reva#11 and wanted to get your feedback about my implementation. Is the approach ok or did you alread have something else in mind?
With these changes I could successfully accept a share and list it in the "all files" list.
Also updating (the owner updated) the shared file worked.