mirror of
https://github.com/apache/superset.git
synced 2026-09-05 23:12:01 +00:00
msyavuz's review noted that CreateDatasetCommand's OAuth2RedirectError re-raise doesn't survive the API layer: DatasetRestApi.post is wrapped in flask-appbuilder's @safe, which catches any uncaught exception and flattens it into an opaque 500, dropping the url/tab_id extras the frontend needs to start the OAuth2 dance. Mirror the pattern already used by DatabaseRestApi (no @safe + explicit except OAuth2RedirectError: raise) so the app-level SupersetErrorException handler can build the correct 403 response instead. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>