-
Notifications
You must be signed in to change notification settings - Fork 189
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
Trying to access a non-existing resource returns an empty body #1282
Comments
similar to owncloud/ocis-reva#30 |
supersedes owncloud/ocis-reva#13 as now it returns an empty body with 204 instead of 500.
|
Going to try and debug this |
bug seems gone:
The following was tested manually using curl with the ocis server (without external LDAP docker) I think we need to distinguish multiple cases properly:
To me it seems this already works. But I have doubts about what owncloud/ocis-reva#13 (comment) is actually testing and why it would still fail, as it seems to be deleting a non-existing file but behaves as if it that file does exist. @individual-it can you recheck ? |
@individual-it the top post speaks of a non-existing resource but it's actually a non-existing user or another user (which must appear as non-existing for the calling user). a non-existing resource would be "http://localhost:9140/remote.php/dav/files/einstein/does-not-exist". we should be more precise in the future because of all these possible distinctions and nuances, especially that these are likely covered by different code paths in the backend |
@PVince81 you are true, I forgot the username in the dav path, but the result is the same - the content of the reply is empty. This issue is not about the return code but about the body of the result message. In your test its the same |
Ah, got it. Thanks |
to be discussed in https://github.com/owncloud/ocis-reva/issues/199 |
can confirm it still happens with the latest master. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions. |
fixed as a side effect of cs3org/reva#1849 |
Then close and remove from expected failures? |
@dpakach please check if there are still any expected-failures related to this issue. Hopefully this is fixed and we can close the issue. |
@sakshamgurung is working on this issue |
|
@phil-davis the PR that adjusts the tests for this issue has been merged owncloud/core#39113. |
The response body exists now, and has the same exception. The message text is different - but that is OK and we have adjusted the tests so that they know to expect the different message text from oCIS. Closing. |
when trying to access a resource that does not exist with GET or PROPFIND, the correct HTTP code (404) is returned but the body of the response is empty
vs oC 10
The text was updated successfully, but these errors were encountered: