Skip to content

test(guest-link): check share types of resources shared with a guest - #4128

Open
v-scharf wants to merge 1 commit into
mainfrom
test/guest-share-types
Open

v-scharf wants to merge 1 commit into
mainfrom
test/guest-share-types

Conversation

@v-scharf

Copy link
Copy Markdown
Contributor

related #3845, opencloud-eu/reva#918, opencloud-eu/reva#999

Adds acceptance tests for the share type of guest shares.

  • WebDAV oc:share-types: 4 for a file or folder shared with a guest, 0 and 4 next to a user share, empty after the guest share is removed
  • Graph [email protected] on the item and on /children: ["email"], ["user", "email"] next to a user share, absent after removal

getDriveItemUrl now resolves the item id by PROPFIND, so it also works for folders.

A resource shared with a guest reports share type 4 in oc:share-types of
a PROPFIND and "email" in @libre.graph.shareTypes of the Graph drive item
and its parent's children, also next to a user share, and none after the
guest share is removed.

getDriveItemUrl resolves the item id by PROPFIND, so it also works for
folders, which have no Oc-Fileid header on GET.

Assisted-by: Claude Code:claude-opus-5-5
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant