-
Notifications
You must be signed in to change notification settings - Fork 112
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
Call to get_shares without shares raises a HTTPResponseError with code 200 #131
Comments
Strange, when I try this against master I get a 404. (get_share with only the name of an existing file). Which OC version are you testing against ? |
ownCloud 8.1.1 (stable) |
I'm getting a 404 with curl as well, on 8.1.1, 8.1.4 and master:
How did you setup the shares to get an empty result ? |
(I'd rather expect an empty set here from OCS... but that's another topic) |
I have two servers, the first one shares a file with the second one. The call is done in the second one, without accepting the remote share yet, so I guess there shouldn't be any share available in the second server |
Hmmm. Are you able to run Can you also run the curl command from above against the target server ? (with the correct file name) |
Looks like the HTTP code is 200 but the status code from the ocs response is 404. I guess this is fixed in newer versions of the server
|
This is what I'm getting. And if I use pyocclient with get_share it throws 404, not 200. |
did you add additional arguments ? |
Nope. Both servers have ownCloud 8.1.1, with the default configuration |
Are you calling getshare on a newly created file or is it an old one ? Was is shared then unshared ? |
Ok, now I understand: You called What I did is call So maybe it's a bug in the OCS API and it should return 400 bad request if the |
Steps:
get_shares
method in that accountExpected behaviour
Either the call returns an empty list of shares, or raise another kind of exception
Actual behaviour
Checked with the python cli
The text was updated successfully, but these errors were encountered: