Skip to content

fix(providers/fab): pass role name string to delete_role instead of Role object - #63337

Merged
vincbeck merged 1 commit into
apache:mainfrom
YoannAbriel:fix/issue-63336
Mar 11, 2026
Merged

fix(providers/fab): pass role name string to delete_role instead of Role object#63337
vincbeck merged 1 commit into
apache:mainfrom
YoannAbriel:fix/issue-63336

Conversation

@YoannAbriel

Copy link
Copy Markdown
Contributor

FABAuthManagerRoles.delete_role() passes the Role ORM object to security_manager.delete_role() which expects a string. SQLAlchemy then tries to use the Role object as a SQL literal in the WHERE clause, raising ArgumentError: Object TestRole is not legal as a SQL literal value.

Fix: pass existing.name (the role name string) instead of the Role object.

Closes: #63336


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Opus 4, claude-opus-4-6)

Generated-by: Claude Code (Opus 4, claude-opus-4-6) following the guidelines


  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

@vincbeck
vincbeck merged commit f629098 into apache:main Mar 11, 2026
88 checks passed
@YoannAbriel
YoannAbriel deleted the fix/issue-63336 branch March 11, 2026 16:01
dominikhei pushed a commit to dominikhei/airflow that referenced this pull request Mar 11, 2026
PascalEgn pushed a commit to PascalEgn/airflow that referenced this pull request Mar 12, 2026
Pyasma pushed a commit to Pyasma/airflow that referenced this pull request Mar 13, 2026
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.

Unable to delete role : 500 internal error

2 participants