Skip to content

fix: Update http error code from 400 to 403 for permission error#13061

Merged
amitmiran137 merged 1 commit into
apache:masterfrom
duynguyenhoang:fix/fix_forbidden_code
Feb 13, 2021
Merged

fix: Update http error code from 400 to 403 for permission error#13061
amitmiran137 merged 1 commit into
apache:masterfrom
duynguyenhoang:fix/fix_forbidden_code

Conversation

@duynguyenhoang
Copy link
Copy Markdown
Contributor

SUMMARY

When user doesn't have enough permission to access a resource, http error code 403 should be returned instead of 400.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TEST PLAN

ADDITIONAL INFORMATION

Copy link
Copy Markdown
Member

@betodealmeida betodealmeida left a comment

Choose a reason for hiding this comment

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

Oh, good catch and thanks for fixing this!

@junlincc
Copy link
Copy Markdown
Member

Hi @duynguyenhoang thanks for the PR again! We actually have a design page for most of the errors if that's helpful
@Steejay

@Steejay
Copy link
Copy Markdown

Steejay commented Feb 10, 2021

Here is the link to the figma page for errors 404, 500 and 403. Feel free to comment by hitting 'C' on your keyboard and placing a comment anywhere in the document.

https://www.figma.com/file/el48F3KQ9u6rtKmdZvdb36/Error-Pages?node-id=59%3A417

@junlincc junlincc added the new:contributor The author is a new contributor label Feb 11, 2021
@amitmiran137 amitmiran137 merged commit 56fca17 into apache:master Feb 13, 2021
@duynguyenhoang duynguyenhoang deleted the fix/fix_forbidden_code branch February 14, 2021 00:46
amitmiran137 pushed a commit to nielsen-oss/superset that referenced this pull request Feb 14, 2021
amitmiran137 pushed a commit to nielsen-oss/superset that referenced this pull request Feb 14, 2021
* master: (30 commits)
  refactor(native-filters): decouple params from filter config modal (first phase) (apache#13021)
  fix(native-filters): set currentValue null when empty (apache#13000)
  Custom superset_config.py + secret envs (apache#13096)
  Update http error code from 400 to 403 (apache#13061)
  feat(native-filters): add storybook entry for select filter (apache#13005)
  feat(native-filters): Time native filter (apache#12992)
  Force pod restart on config changes (apache#13056)
  feat(cross-filters): add cross filters (apache#12662)
  fix(explore): Enable selecting an option not included in suggestions (apache#13029)
  Improves RTL configuration (apache#13079)
  Added a note about the ! prefix for breaking changes to CONTRIBUTING.md (apache#13083)
  chore: lock down npm to v6 (apache#13069)
  fix: API tests, make them possible to run independently again (apache#13076)
  fix: add config to disable dataset ownership on the old api (apache#13051)
  add required * indicator to message content/notif method (apache#12931)
  fix: Retroactively add granularity param to charts (apache#12960)
  fix(ci): multiline regex in change detection (apache#13075)
  feat(style): hide dashboard header by url parameter (apache#12918)
  fix(explore): pie chart label bugs (apache#13052)
  fix: Disabled state button transition time (apache#13008)
  ...
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.2.0 First shipped in 1.2.0 labels Mar 12, 2024
qfcwell pushed a commit to qfcwell/superset that referenced this pull request May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels new:contributor The author is a new contributor size/XS 🚢 1.2.0 First shipped in 1.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants