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

fix(ShareWrapperRequest): Save share attributes on creation #1731

Merged
merged 2 commits into from
Oct 31, 2024

Conversation

nfebe
Copy link
Contributor

@nfebe nfebe commented Oct 29, 2024

  • Before this commit, attributes added to a share were ignored when the share type was team/circles (share type 7).

  • Share attributes are not expected to contain any key or property named enabled.

Resolves : nextcloud/server#46920

This is a partial resolution because setting the download attribute may not fully enforce the correct download permissions. A follow-up PR in the server may be needed to update the hideDownload property of the share based on the value of download in the share attributes.

- Before this commit, attributes added to a share were ignored when the share type was team/circles (share type `7`).

- Share attributes are not expected to contain any key or property named `enabled`.

Partial resolution of: nextcloud/server#46920

This is a partial resolution because setting the `download` attribute may not fully enforce the correct download permissions. A follow-up PR in the server may be needed to update the `hideDownload` property of the share based on the value of `download` in the share attributes.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
@nfebe nfebe requested a review from ArtificialOwl October 29, 2024 16:27
Signed-off-by: Louis Chemineau <louis@chmn.me>
@nfebe nfebe merged commit 0d0a7ba into master Oct 31, 2024
29 checks passed
@nfebe nfebe deleted the fix/part-of/46920/save-share-attributes-on-create branch October 31, 2024 11:07
@nfebe
Copy link
Contributor Author

nfebe commented Oct 31, 2024

/backport to stable30

@nfebe
Copy link
Contributor Author

nfebe commented Oct 31, 2024

/backport to stable29

@nfebe
Copy link
Contributor Author

nfebe commented Oct 31, 2024

/backport to stable28

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.

[Bug]: sharing with team does not respect "no download" setting
3 participants