Skip to content

fix: Fix permission issue when uploading a chunked file#59654

Open
CarlSchwan wants to merge 1 commit intomasterfrom
carl/permission-upload
Open

fix: Fix permission issue when uploading a chunked file#59654
CarlSchwan wants to merge 1 commit intomasterfrom
carl/permission-upload

Conversation

@CarlSchwan
Copy link
Copy Markdown
Member

@CarlSchwan CarlSchwan commented Apr 15, 2026

Follow up from #59511

Summary

TODO

  • ...

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@CarlSchwan CarlSchwan requested a review from a team as a code owner April 15, 2026 15:22
@CarlSchwan CarlSchwan requested review from Altahrim, icewind1991, leftybournes and nfebe and removed request for a team April 15, 2026 15:22
@CarlSchwan CarlSchwan force-pushed the carl/permission-upload branch 3 times, most recently from 53e9c32 to f2ce921 Compare April 15, 2026 15:42
Follow up from #59511

Signed-off-by: Carl Schwan <carlschwan@kde.org>
@CarlSchwan CarlSchwan force-pushed the carl/permission-upload branch from f2ce921 to d10cf97 Compare April 15, 2026 15:48
@CarlSchwan
Copy link
Copy Markdown
Member Author

/backport to stable33

@CarlSchwan
Copy link
Copy Markdown
Member Author

/backport to stable32


public function rename($source, $target): bool {
if (!$this->isUpdatable($source)) {
if (!$this->isDeletable($source)) {
Copy link
Copy Markdown
Member

@icewind1991 icewind1991 Apr 15, 2026

Choose a reason for hiding this comment

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

That is not correct, see #57374 for some details around rename permissions

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Suggested change
if (!$this->isDeletable($source)) {
if (!($this->isDeletable($source) || $this->isUpdatable($source))) {

Would this work?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Or we can add Constants::PERMISSION_UPDATABLE in apps/dav/appinfo/v2/publicremote.php

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.

[Bug]: Chunked upload via public share link fails with NotPermittedException on MOVE step (NC 33)

4 participants