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

use gateway to resolve public share info #872

Closed
wants to merge 10 commits into from

Conversation

butonic
Copy link
Contributor

@butonic butonic commented Jun 23, 2020

alternative approach to #822

@butonic butonic requested a review from labkode as a code owner June 23, 2020 14:53
@butonic butonic changed the title use gateway to resolve puplic share info use gateway to resolve public share info Jun 23, 2020
@butonic butonic marked this pull request as draft June 23, 2020 14:55
@PVince81
Copy link
Contributor

PVince81 commented Jun 23, 2020

To retest:

@PVince81
Copy link
Contributor

PVince81 commented Jun 23, 2020

@refs FYI

@PVince81
Copy link
Contributor

@PVince81
Copy link
Contributor

PR here to fix upload and implement some more operations: butonic#5

still need to look at single file share which is currently broken here

@PVince81
Copy link
Contributor

cool, so all tests I've enabled pass except the ones for single file share, which is the last thing that needs fixing:

    /srv/www/htdocs/owncloud/tests/acceptance/features/apiSharePublicLink1/createPublicLinkShare.feature:643
    /srv/www/htdocs/owncloud/tests/acceptance/features/apiSharePublicLink1/createPublicLinkShare.feature:644

@PVince81
Copy link
Contributor

Further work here for the linter and code reuse: butonic#6

refs and others added 7 commits June 24, 2020 13:57
inline return

working upload

spare a few allocations

provide missing parameter on InitiateUpload

single file publicly shared download working

filename on single shared file

apply @PVince81 patch

take into account depth

improve base logic

resolve append not assigned to same destination variable

disable gocritic for long ifElse chains
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
@butonic butonic force-pushed the refactor-public-links-download branch from 5ce71f8 to bebec8b Compare June 24, 2020 11:57
Vincent Petry and others added 3 commits June 24, 2020 14:01
Move all path translation logic into a single private method to make it
easier to reuse.
Whenever the actual storage operation on the gateway fails, return a
response to the caller including the error.
Public links code cleanup path translation and errors
@PVince81
Copy link
Contributor

PVince81 commented Jun 24, 2020

Regarding single file share:

@butonic and I had a long session and found out that:

  • we agreed that it is not a good idea to add the virtual folder on the CS3 layer, so we need to do it on the Webdav layer. The current approach is a mix of both.
  • to do public file share in proper way we need to separate the logic for the virtual folder. We started something here: Attempt public file share butonic/reva#7

Since I'd like to have something merged, we'll split the topics, so here are the next steps:

@PVince81
Copy link
Contributor

@butonic I've submitted the features that already work in a separate PR #877 so that we can merge those first.

we can keep your branch here "refactor-public-links-download" to continue exploring the single file share implementation.

@PVince81
Copy link
Contributor

please rebase. or should we start a brand new pr for file shares?

@butonic butonic closed this Jun 25, 2020
@butonic
Copy link
Contributor Author

butonic commented Jun 25, 2020

obsoleted by #877

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