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

Backport/5.0/7885 #8544

Merged
merged 18 commits into from
Feb 28, 2024
Merged

Backport/5.0/7885 #8544

merged 18 commits into from
Feb 28, 2024

Conversation

rhafer
Copy link
Contributor

@rhafer rhafer commented Feb 28, 2024

Backport of #7885

fschade and others added 18 commits February 28, 2024 17:42
…led implementation still missed

(cherry picked from commit a5b70b3)
…terface

After some back an forth we agreed on keeping the routes defined
in a central place for now.

(cherry picked from commit e7985f4)
In theory creating the driveItem to accepting a shared resource
can be done via '/v1beta1/drives/{drive-id}/item/{item-id}/children'
but there is also the simplified variant via
'/v1beta1/drives/{drive-id}/root/children' (aligned with the example
in the spec). For now we'll just implement the latter because accepting
a share will always be done via root of the sharejail drive.

(cherry picked from commit c8a89e9)
When accepting a share via 'POST /v1beta1/drives/{driveId}/root/children'
return the newly created driveItem. This driveItem wraps the accepted
remoteItem representing the shared resource (similar to the
'sharedWithMe' response.

This also refactors some of the helpers for user lookup and CS3 share to
driveItem conversion so they can be more easily shared.

(cherry picked from commit 7edc2fe)
(cherry picked from commit 10babaf)
Only accept requests against the shareJail driveID

(cherry picked from commit 64f6c14)
errors.Join(errs...) ignores nil errors and returns nil if there are not errors.

(cherry picked from commit f5a282c)
(cherry picked from commit 954998a)
Copy link
Collaborator

@kobergj kobergj left a comment

Choose a reason for hiding this comment

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

LGTM 👍🏻

Copy link

sonarcloud bot commented Feb 28, 2024

@micbar micbar merged commit 619376a into owncloud:stable-5.0 Feb 28, 2024
3 checks passed
ownclouders pushed a commit that referenced this pull request Feb 28, 2024
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.

None yet

4 participants