Skip to content

Fix/propfind sharetype - #3845

Open
maki5 wants to merge 3 commits into
opencloud-eu:mainfrom
maki5:fix/propfind_sharetype
Open

maki5 wants to merge 3 commits into
opencloud-eu:mainfrom
maki5:fix/propfind_sharetype

Conversation

@maki5

@maki5 maki5 commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

handle new ShareTypeGuest on GetDriveItem

closes: #3592
related to: opencloud-eu/libre-graph-api#83

@codacy-production

codacy-production Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity

Metric Results
Complexity 0

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.

@maki5
maki5 force-pushed the fix/propfind_sharetype branch from 21c216a to a036625 Compare October 28, 2026 10:38
@maki5
maki5 requested review from aduffeck and rhafer October 29, 2026 08:31

@aduffeck aduffeck left a comment

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.

Something's broken with the reva bump apparently.

case strconv.Itoa(int(storageprovider.GranteeType_GRANTEE_TYPE_GROUP)):
types = append(types, "group")
case strconv.Itoa(int(conversions.ShareTypeGuest)):
types = append(types, "user")

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.

Should we "unique" the types before returning them? Not sure what web does when an item is shared with a user and a guest and gets ["user", "user"] as a result.

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.

from what I understood web handles guest as user, but I might be wrong, @kulmann can you correct me?

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.

deduplication would be good and I would expect guest in line 640, not user.

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.

Guest shares in PROPFIND have shareType 0 instead of 4

3 participants