-
Notifications
You must be signed in to change notification settings - Fork 184
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
Panic when downloading #1351
Comments
@ishank011 could you provide a bit more input? 👯 I suspect that accounts middleware is acting funny. It would be helpful if you could post the phoenix request since such middleware can be bypassed, and I would like to see what the implications are. |
I tried killing the usual suspect, the ocis store, but I'm not reproducing the issue that way. I think the smoking gun is the accounts middleware, as your logs show |
@refs Clicking on a file first sends a HEAD request which returns successfully
followed by one to the endpoint, which returns a 502
The complete logs are here https://gist.github.com/ishank011/2ec204692a6cc1092db68b743857fdf6 Also, all these background requests One more thing. How do we disable tus from phoenix? |
As @butonic mentioned, this should be handled by reva but apparently, it is somehow being redirected to ocis (or vice versa). |
But looking at https://github.com/cs3org/reva/blob/master/internal/http/services/owncloud/ocs/handlers/cloud/user/user.go, this won't be the issue, as it should always return 200 |
|
Yep. |
@ishank011 regarding TUS: as long as TUS headers are present ocis web will use them. owncloud/owncloud-sdk#461 Which means that on EOS which does not support TUS the ocdav handler should not announce them in PROPFIND headers. which is currently hardcodet to true: https://github.com/cs3org/reva/blob/a7bf52ba4cf145baeb4b72d5dca485c731d5c1a7/internal/http/services/owncloud/ocdav/propfind.go#L192-L197 We could return capabilities like this in a ResourceInfo Opaque propery ... because it might change from file to file ... |
@butonic oh okay. I added a change which fixes the capabilities response in ocs cs3org/reva#1331. Can we somehow propagate that to ocdav? Otherwise, I'll add the opaque property to EOS resources |
forget the capabilities endpoint. it has to die for anything related to files. having a single endpoint does not make sense because the capabilities might change with every tree, maybe even for every folder and file. TUS ist a good example. It really is specific to the folder and we should announce it in the PROPFIND / HEAD requests using the proper headers. So I strongly vote for opaque properties. |
Cool, I'll make the change. Thanks for looking into this! |
@ishank011 we could add tus support to https://cs3org.github.io/cs3apis/#cs3.storage.registry.v1beta1.ProviderInfo.Features |
When downloading via phoenix, we get 502 in CERN's setup.
Logs: https://gist.github.com/ishank011/2ec204692a6cc1092db68b743857fdf6
The text was updated successfully, but these errors were encountered: