Skip to content
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

Integrate TUS endpoint with ocis-proxy #72

Closed
6 tasks done
exalate-issue-sync bot opened this issue Jun 8, 2020 · 12 comments
Closed
6 tasks done

Integrate TUS endpoint with ocis-proxy #72

exalate-issue-sync bot opened this issue Jun 8, 2020 · 12 comments
Assignees

Comments

@exalate-issue-sync
Copy link

exalate-issue-sync bot commented Jun 8, 2020

owncloud/ocis-proxy#44

possible solution owncloud/ocis-proxy#44 (comment)

Tasks

  • Add a mapping for /data to the datagateway (REVA_FRONTEND) in the proxy
  • Adjust the default configuration
  • Encode REVA transport token in the upload endpoint (ocdav), because TUS doesn't understand the transport token in the header. TUS just needs an endpoint.
  • Teach datagateway to extract the token from the full url and convert it back into a REVA transport token
  • Teach datagateway to make a PATCH
  • Fix upload initiation bug in ocis-web - looks like this is only some caching bug in Chrome on my machine ( @kulmann ). Private Chrome session + Firefox work like expected.

Estimation

Complexity: S
Effort: S

Related to Tracing https://github.com/owncloud/ocis/issues/277

@exalate-issue-sync exalate-issue-sync bot added Exalated This issue is under sync p3-medium story User Story labels Jun 8, 2020
@exalate-issue-sync
Copy link
Author

Remote key is https://jira.owncloud.com/browse/OCIS-79

1 similar comment
@exalate-issue-sync
Copy link
Author

Remote key is https://jira.owncloud.com/browse/OCIS-79

@butonic
Copy link
Member

butonic commented Jun 16, 2020

TUS-Upload-TODO

@kulmann
Copy link

kulmann commented Jun 24, 2020

@kulmann
Copy link

kulmann commented Jun 25, 2020

Screenshot 2020-06-25 at 09 08 26

^ successful upload through proxy, with reva transfer token in the URL and reva routing through the datagateway.

@PVince81
Copy link

I checked out the three PRs and tested it in Phoenix (the Phoenix version in ocis, not master)

The URL is replaced correctly in the returned "Location" header of the initial POST.
However the PATCH request fails with a 404.

image

Is there any additional non-default configuration to set ?

@kulmann
Copy link

kulmann commented Jun 25, 2020

I checked out the three PRs and tested it in Phoenix (the Phoenix version in ocis, not master)

The URL is replaced correctly in the returned "Location" header of the initial POST.
However the PATCH request fails with a 404.

image

Is there any additional non-default configuration to set ?

Did you start oCIS with proxy config file? /data endpoint is not included in the builtin routes. I added the /data endpoint to the builtin default routes.

@PVince81
Copy link

Works now, I pulled your latest ocis-proxy changes

@kulmann
Copy link

kulmann commented Jun 25, 2020

Oh by the way, I tested with phoenix in current master and with ocis-phoenix in ocis single binary. Behaviour was the same in both versions (was expected, but still good to know).

@PVince81
Copy link

PVince81 commented Jun 25, 2020

next steps:

@PVince81
Copy link

it appears that merging cs3org/reva#878 would break public link upload, so we cannot merge it without solving the issue: cs3org/reva#878 (review)

if you need to touch it anyway then let's rebase on top of latest reva. I'll adjust the checkbox list

@kulmann
Copy link

kulmann commented Jun 26, 2020

Closed with owncloud/ocis-reva#261 and owncloud/ocis-proxy#45

@kulmann kulmann closed this as completed Jun 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants