Skip to content

feat(content-uploader): Implement permission error handling uploads#4580

Open
dealwith wants to merge 1 commit into
implement-cancel-all-confirmation-modalfrom
implement-permission-error-handling-uploads
Open

feat(content-uploader): Implement permission error handling uploads#4580
dealwith wants to merge 1 commit into
implement-cancel-all-confirmation-modalfrom
implement-permission-error-handling-uploads

Conversation

Map the 403 access_denied_insufficient_permissions error code to a
distinct, localized message in the upload list error renderer instead of
falling through to the generic Something went wrong copy. Storage limit
errors continue to surface their existing message.
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 20, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: ff435285-891f-48be-a3ad-926c545f92a9

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch implement-permission-error-handling-uploads

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@dealwith dealwith changed the base branch from master to implement-cancel-all-confirmation-modal May 21, 2026 09:39
@dealwith dealwith marked this pull request as ready for review May 27, 2026 14:26
@dealwith dealwith requested review from a team as code owners May 27, 2026 14:26
ERROR_CODE_UPLOAD_FAILED_PACKAGE,
ERROR_CODE_UPLOAD_FILE_SIZE_LIMIT_EXCEEDED,
ERROR_CODE_UPLOAD_PENDING_APP_FOLDER_SIZE_LIMIT,
ERROR_CODE_UPLOAD_INSUFFICIENT_PERMISSIONS,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

alphabetize

INSUFFICIENT_PERMISSIONS should come before PENDING_APP_FOLDER_SIZE_LIMIT. should be between FILE_SIZE_LIMIT_EXCEEDED and PENDING_APP_FOLDER_SIZE_LIMIT.

Comment thread src/constants.js
export const ERROR_CODE_ITEM_NAME_IN_USE = 'item_name_in_use';
export const ERROR_CODE_UPLOAD_FILE_LIMIT = 'upload_file_limit';
export const ERROR_CODE_UPLOAD_CHILD_FOLDER_FAILED = 'child_folder_failed_upload';
export const ERROR_CODE_UPLOAD_INSUFFICIENT_PERMISSIONS = 'access_denied_insufficient_permissions';
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

outside of the scope of this pr, but, if you're in here

MultiputUpload.js and its test should probably be updated to use it too.

errorData.code === 'access_denied_insufficient_permissions')

${{ code: 'access_denied_insufficient_permissions', status: 403 }}

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.

4 participants