Skip to content

fix(s3): show S3 error messages in the frontend#62163

Open
mejo- wants to merge 1 commit into
masterfrom
fix/s3_quota_exceeded_error_message
Open

fix(s3): show S3 error messages in the frontend#62163
mejo- wants to merge 1 commit into
masterfrom
fix/s3_quota_exceeded_error_message

Conversation

@mejo-

@mejo- mejo- commented Jul 15, 2026

Copy link
Copy Markdown
Member

Improves error messages on move/copy operations when bucket quota exceeded

Fixes: #58801

Screenshots

Before After
image image

Checklist

Improves error messages on move/copy operations when bucket quota exceeded

Fixes: #58801

Signed-off-by: Jonas <jonas@freesources.org>
@mejo- mejo- added this to the Nextcloud 35 milestone Jul 15, 2026
@mejo- mejo- self-assigned this Jul 15, 2026
@mejo- mejo- requested a review from a team as a code owner July 15, 2026 11:11
@mejo- mejo- removed the request for review from a team July 15, 2026 11:11
@github-project-automation github-project-automation Bot moved this to 🧭 Planning evaluation (don't pick) in 📝 Productivity team Jul 15, 2026
@mejo- mejo- moved this from 🧭 Planning evaluation (don't pick) to 👀 In review in 📝 Productivity team Jul 15, 2026
@mejo- mejo- requested a review from cuppett July 15, 2026 11:13
@mejo-

mejo- commented Jul 15, 2026

Copy link
Copy Markdown
Member Author

/backport to stable34

throw new \Sabre\DAV\Exception\Forbidden('');
}
} catch (StorageNotAvailableException $e) {
} catch (StorageNotAvailableException|S3Exception $e) {

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.

This seems to be the wrong layer to expose this sort of error. This should be catched in lib/private/Files/ObjectStore/ObjectStoreStorage::rename and converted to a NotPermittedException with a more user friendly error message

$this->writeStream($targetInternalPath, $source);
$result = true;
} catch (S3Exception $e) {
Server::get(LoggerInterface::class)->warning('Failed to copy stream to storage', ['exception' => $e]);

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.

same here, ObjectStoreStorage should not throw a S3Exception but a NotPermittedException

@mejo- mejo- moved this from 👀 In review to 🏗️ In progress in 📝 Productivity team Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: 🏗️ In progress

Development

Successfully merging this pull request may close these issues.

[Bug]: S3 storage quota error message displayed incorrectly

3 participants