Skip to content

[stable33] fix(files_sharing): Use share id in file actions - #62402

Open
backportbot[bot] wants to merge 1 commit into
stable33from
backport/61099/stable33
Open

[stable33] fix(files_sharing): Use share id in file actions#62402
backportbot[bot] wants to merge 1 commit into
stable33from
backport/61099/stable33

Conversation

@backportbot

@backportbot backportbot Bot commented Jul 22, 2026

Copy link
Copy Markdown

Backport of #61099

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Review and verify the backported changes
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@backportbot backportbot Bot added bug 3. to review Waiting for reviews labels Jul 22, 2026
@backportbot backportbot Bot added this to the Nextcloud 33.0.8 milestone Jul 22, 2026
@provokateurin
provokateurin force-pushed the backport/61099/stable33 branch from d8eeccf to 293690b Compare July 22, 2026 11:27
@provokateurin
provokateurin marked this pull request as ready for review July 22, 2026 11:27
@provokateurin
provokateurin requested a review from a team as a code owner July 22, 2026 11:27
@provokateurin
provokateurin requested review from kristian-zendato, nfebe and sorbaugh and removed request for a team July 22, 2026 11:27
@provokateurin
provokateurin enabled auto-merge July 22, 2026 11:27
const node = nodes[0]
const url = generateOcsUrl('apps/files_sharing/api/v1/deletedshares/{id}', {
id: node.id,
id: node.attributes['share-id'],

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.

At least on API level it seems to expect provider:id and id needs to be the group share ID and not the user-group share ID, e.g.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked what share-id resolves to here. It comes from ocsEntry.id, which for deleted shares is DeletedShareAPIController's $share->getFullId(), so it is already provider:id. For group shares resolveGroupShares() keeps the parent group share, so getFullId() returns the group id. So the action already sends provider:groupShareId

@enjeck
enjeck force-pushed the backport/61099/stable33 branch from 293690b to cc6c76b Compare August 5, 2026 04:32
@enjeck
enjeck requested a review from nickvergessen August 5, 2026 04:37
Signed-off-by: provokateurin <kate@provokateurin.de>
@icewind1991
icewind1991 force-pushed the backport/61099/stable33 branch from cc6c76b to 5a004e4 Compare August 5, 2026 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants