Skip to content

Fix/propfind sharetype - #3845

Merged
maki5 merged 8 commits into
opencloud-eu:mainfrom
maki5:fix/propfind_sharetype
Nov 19, 2026
Merged

maki5 merged 8 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#87, opencloud-eu/reva#999

@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

🟢 Coverage 100.00% diff coverage · +0.01% coverage variation

Metric Results
Coverage variation ✅ +0.01% coverage variation (-1.00%)
Diff coverage ✅ 100.00% diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (348ba63) 94306 28339 30.05%
Head commit (c0b845b) 94308 (+2) 28351 (+12) 30.06% (+0.01%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#3845) 2 2 100.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

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.

@maki5
maki5 force-pushed the fix/propfind_sharetype branch 3 times, most recently from a8f519a to 8e788f1 Compare November 17, 2026 15:53

@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.

needs bumps after the other things have been merged but the change lgtm

@maki5
maki5 force-pushed the fix/propfind_sharetype branch from 8e788f1 to d14b050 Compare November 19, 2026 15:46
@maki5
maki5 force-pushed the fix/propfind_sharetype branch from d14b050 to d9e53d8 Compare November 19, 2026 15:59
@maki5
maki5 merged commit 839838a into opencloud-eu:main Nov 19, 2026
61 checks passed
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