Skip to content

fix: listing versions for share receivers#2667

Merged
JammingBen merged 1 commit into
mainfrom
fix/shares-with-version-history
Jun 12, 2026
Merged

fix: listing versions for share receivers#2667
JammingBen merged 1 commit into
mainfrom
fix/shares-with-version-history

Conversation

@JammingBen

@JammingBen JammingBen commented Jun 11, 2026

Copy link
Copy Markdown
Member

Fixes an issue where file versions were missing for a share receiver despite the permissions of the share allowing the listing of versions.

The fix moves the canListVersions method from the SpaceResource to the Resource interface since it should be called on a resource. On a space, it will always return false, since spaces don't have versions. This fixes some inconsistencies we had before (this method should represent the permissions on the actual space, not its resources).

Also, it makes sure the graphPermissions are set properly when creating share spaces and when loading files via the app wrapper. This is a prerequisite for determining of the user is allowed to list versions.

@JammingBen JammingBen self-assigned this Jun 11, 2026
@JammingBen JammingBen force-pushed the fix/shares-with-version-history branch 2 times, most recently from 0279fdb to 219d2ec Compare June 11, 2026 15:01
@JammingBen JammingBen marked this pull request as ready for review June 11, 2026 15:03
@JammingBen JammingBen force-pushed the fix/shares-with-version-history branch 3 times, most recently from 04f90d6 to be82d91 Compare June 11, 2026 15:06
Fixes an issue where file versions were missing for a share receiver
despite the permissions of the share allowing the listing of versions.

The fix moves the `canListVersions` method from the `SpaceResource` to
the `Resource` interface since it should be called on a resource.
On a space, it will always return `false`, since spaces don't have
versions. This fixes some inconsistencies we had before (this method
should represent the permissions on the actual space, not its
resources).
@JammingBen JammingBen force-pushed the fix/shares-with-version-history branch from be82d91 to 069dd34 Compare June 11, 2026 15:31
@JammingBen JammingBen merged commit 13bddef into main Jun 12, 2026
30 checks passed
@JammingBen JammingBen deleted the fix/shares-with-version-history branch June 12, 2026 06:00
@openclouders openclouders mentioned this pull request Jun 12, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants