Frun1na opened a new issue, #4662:
URL: https://github.com/apache/rocketmq-dashboard/issues/4662

   ### Environment
   
   * rocketmq-dashboard branch: rocketmq-studio
   
   ### What happened
   
   In the `rmqctl` table renderer (rmqctl/internal/output/output.go), `Rows` 
joins cell values with
   tabs and renders them through a `tabwriter` with default flags, while 
`stringify` returns
   server-provided strings verbatim. A cell value containing a raw tab is read 
as a column
   delimiter (every following column of that row shifts), an embedded newline 
splits the row in
   two, and a carriage return overwrites the line start on terminals.
   
   The corruption is data-dependent and silent in table mode: JSON and YAML 
output are unaffected,
   so the same tool call can look correct in one output format and render 
shifted or split rows in
   another. Broker descriptions, error text, client hostnames and user-supplied 
topic/group
   metadata can all carry these characters.
   
   ### What should happen
   
   Table cells should render `\t`, `\n` and `\r` as escape sequences so one row 
always renders as
   one aligned line, regardless of the data it carries.
   
   ### Additional context
   
   PR with fix and tests: #4661
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to