-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
file_target in share response #203
Comments
The correct behavior is /Shares/textfile0.txt The sharing api uses paths that are relative to the users home, aka the /webdav and /dav/files/userid endpoints. When we introduce an endpoint that allows listing the accessible storages we may need to add new properties to reference the storage and the relative path in it. But that is nothing for the old sharing /ocs api IMNSHO. |
OK - then this is an OCIS bug. This will block a lot of core sharing scenarios from passing, because many of them have these sort of "bulk" checks of a list of expected field values. So the scenario stops at the first thing that is wrong, and we don't get to know if the next steps (accepting the share, accessing the share) do actually work. If this bug is easy to fix, then no problem. But if it will take some time to fix then we need to think about whether we refactor the core tests into more separate scenarios that test different parts of the outcome. |
I had this in Jira but forgot to exhalate: #204 This also breaks the link in the "shared with me" page |
This kind-of-effectively-breaks sharing, because the share receivers have trouble automatically finding their shares. |
@phil-davis I'm not sure how easy it is. If this is only about reading the "share_folder" config var and pre-pending it there, then it should be easy. Also assuming that shares cannot be moved out of that folder nor renamed, so the share target would never change, at least for now. Maybe @butonic can confirm. |
the sharing code lives in the ocs handler (reva ... in transition to ocis-ocs by @C0rby unless he is dragged elsewhere) in the listSharesWithOthers function: https://github.com/cs3org/reva/blob/137283e20aee81015d8cdb3398184659c914a827/internal/http/services/owncloud/ocs/handlers/apps/sharing/shares/shares.go#L1080-L1124 Further down the call trace there is https://github.com/cs3org/reva/blob/137283e20aee81015d8cdb3398184659c914a827/internal/http/services/owncloud/ocs/handlers/apps/sharing/shares/shares.go#L1329-L1430 which has a few TODOs: https://github.com/cs3org/reva/blob/137283e20aee81015d8cdb3398184659c914a827/internal/http/services/owncloud/ocs/handlers/apps/sharing/shares/shares.go#L1339-L1346 FIleTarget and Path need to be clarified. info.Path should contain the full path, including /Shares or whatever was configured. It might be enough to omit the path.Base() call. |
should be also fixed by owncloud/ocis#994 |
In oC10, set
share_folder
toShares
inconfig.php
(this makes it match what OCIS does - received shares go in a folder calledShares
)Also disable auto-accept shares, so that shares have to be accepted by the receiver - this is compatible with the OCIS default behavior.
Share a file to some other user, and look at the response.
file_target
has value like/Shares/textfile0.txt
Do the same in OCIS.
file_target
has value like/textfile0.txt
Which is the correct behavior and which is the "bug"?
Here is an example of a scenario failing on OCIS (it passes on oC10):
The text was updated successfully, but these errors were encountered: