Skip to content

[airflow-ctl/v0-1-test] Escape error text in airflowctl safe_call_command messages (#76264) - #76385

Merged
shahar1 merged 1 commit into
airflow-ctl/v0-1-testfrom
backport-ab39e95-airflow-ctl/v0-1-test
Nov 3, 2026
Merged

shahar1 merged 1 commit into
airflow-ctl/v0-1-testfrom
backport-ab39e95-airflow-ctl/v0-1-test

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

safe_call_command interpolated exception and server error text straight
into Rich markup. A message containing a tag-like fragment such as
"[/x]" made rich.print raise MarkupError, so the user saw a traceback
instead of the real failure and the exit code was no longer 1.

Escape the text in the AirflowCtl, protocol, timeout, server response
and HTTP status handlers.
(cherry picked from commit ab39e95)

Co-authored-by: Rishabh Rishabh00b@gmail.com

…mand messages (#76264)

safe_call_command interpolated exception and server error text straight
into Rich markup. A message containing a tag-like fragment such as
"[/x]" made rich.print raise MarkupError, so the user saw a traceback
instead of the real failure and the exit code was no longer 1.

Escape the text in the AirflowCtl, protocol, timeout, server response
and HTTP status handlers.
(cherry picked from commit ab39e95)

Co-authored-by: Rishabh <Rishabh00b@gmail.com>
@shahar1
shahar1 enabled auto-merge (squash) November 3, 2026 17:28
@shahar1
shahar1 merged commit c66d45a into airflow-ctl/v0-1-test Nov 3, 2026
14 checks passed
@shahar1
shahar1 deleted the backport-ab39e95-airflow-ctl/v0-1-test branch November 3, 2026 17:34
shahar1 pushed a commit to shahar1/airflow that referenced this pull request Nov 4, 2026
…mand messages (apache#76264) (apache#76385)

safe_call_command interpolated exception and server error text straight
into Rich markup. A message containing a tag-like fragment such as
"[/x]" made rich.print raise MarkupError, so the user saw a traceback
instead of the real failure and the exit code was no longer 1.

Escape the text in the AirflowCtl, protocol, timeout, server response
and HTTP status handlers.
(cherry picked from commit ab39e95)

Co-authored-by: Rishabh <Rishabh00b@gmail.com>
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.

2 participants