Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

CLI renders table property keys and values as Rich markup without escaping

Aperta
#3,984 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
74/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
cli

Direzione di ricerca

Start in pyiceberg/cli/output.py with RichOutput.describe_properties and inspect the other describe_* methods that render server-supplied strings. Trace the CLI output path and existing tests, if present. Done means property keys and values are rendered literally rather than interpreted as Rich markup across the affected methods.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

RichOutput.describe_properties in pyiceberg/cli/output.py adds property keys and values directly to a Rich table:

def describe_properties(self, properties: Properties) -> None:
    output_table = self._table
    for k, v in properties.items():
        output_table.add_row(k, v)
    Console().print(output_table)

Rich interprets console markup by default, so square-bracket sequences in a property key or value are treated as style tags rather than literal text. rich.markup.escape is not used anywhere in the CLI, and markup=False is not set.

The same pattern appears in the other describe_* methods that render server-supplied strings. The practical effect is that property content controls the styling of CLI output, and content with unbalanced or misleading tags can alter how surrounding rows render.


Issue investigation generated via claude, reviewed by Sung, Kevin, Fokko.

Lingua principale
Python
Stelle
1.1k
Fork
589
Merge medio
2g 2h
PR unite (30g)
70

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/iceberg-python

Tutte le issue di apache/iceberg-python

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.