Skip to content

tus for ocdav - #674

Merged
labkode merged 14 commits into
cs3org:masterfrom
butonic:tus-ocdav
Apr 30, 2020
Merged

labkode merged 14 commits into
cs3org:masterfrom
butonic:tus-ocdav

Conversation

@butonic

@butonic butonic commented Apr 21, 2020 •

Copy link
Copy Markdown
Contributor

This PR / branch will serve as the basis for further ocis-web development

includes #669
based on #661

@butonic
butonic requested a review from labkode as a code owner April 21, 2020 21:10
@butonic

butonic commented Apr 21, 2020

Copy link
Copy Markdown
Contributor Author

cc @PVince81 @@LukasHirt pleaase try phoenix on top of this

Comment thread pkg/storage/fs/local/upload.go Resolved
@butonic

butonic commented Apr 22, 2020 •

Copy link
Copy Markdown
Contributor Author

@labkode @PVince81 I think I addressed all comments or raised specific issues to track them.

butonic added 6 commits April 23, 2020 14:29
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
@PVince81

PVince81 commented Apr 23, 2020 •

Copy link
Copy Markdown
Contributor
  • BUG: getting a 500 internal server error for non-TUS upload with PUT (works fine on reva master). Please note that non-TUS upload with PUT works fine on the butonic:tus-dataprovider branch.

@PVince81

Copy link
Copy Markdown
Contributor
  • BUG: on this branch I still get a CORS error:

image

it wasn't present on the butonic:tus-dataprovider branch and works fine there when testing with owncloud/web#3345 (had to hack it to bypass capability check)

Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
@butonic

butonic commented Apr 23, 2020

Copy link
Copy Markdown
Contributor Author

ok, the cors issues are fixed but require changes to the Makefile as well. but we now run into the funny namespacing again: owncloud/ocis#219

butonic added 2 commits April 24, 2020 16:22
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
@butonic

butonic commented Apr 24, 2020

Copy link
Copy Markdown
Contributor Author

Ok, with the last commit I can now configure

  • remote.php/webdav to use /home and
  • remote.php/dav/files to use /eos/users/{{substr 0 1 .Username}}/ (instead of just /eos)

Which allows the home storage to return references to the /eos dataprovider (which is configured not to use user_layouts because it is NOT a home storage)

The remote.php/dav/files endpoint will as the first argument always get a username which we must 'layout' the same way as in eos. I am currently relying on the requests to always use the user that is logged in ... but we could change that to layout the first path parameter, becaluse we know in the dav/files/ endpoint always is the username.

Also ... it seems to become more clear that a global endpoint should get its own endpoint, eg. /dav/global

This was referenced Apr 24, 2020
@butonic

butonic commented Apr 27, 2020

Copy link
Copy Markdown
Contributor Author

butonic added 5 commits April 29, 2020 18:10
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Comment thread cmd/reva/upload.go Resolved
}
url.Path = path.Join("/", url.Path, newRef.GetPath())
var uploadLength int64
if req.Opaque != nil && req.Opaque.Map != nil && req.Opaque.Map["Upload-Length"] != nil {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should come from the CS3 Req

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tracked in cs3org/cs3apis#71

Comment thread pkg/storage/fs/eos/upload.go Resolved
@labkode
labkode merged commit 09edd2b into cs3org:master Apr 30, 2020
C0rby referenced this pull request in owncloud/reva May 4, 2020
flash7777 pushed a commit to flash7777/reva that referenced this pull request Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants