CasaOS icon indicating copy to clipboard operation
CasaOS copied to clipboard

[Bug] CasaOS UI Fails to Render "<>" in Docker Logs

Open Cp0204 opened this issue 1 year ago • 0 comments

CasaOS Bug Report

Describe the bug

Docker logs are not displaying correctly. Specifically, strings with the format <> are not rendered properly in the CasaOS UI, even though they are present in the network response. This seems to be a frontend rendering issue.

To Reproduce

  1. Run a Docker container that logs a string with the format <>. For example:
    print("<Job (id=./xxxx.py name=run_python)>")
    
  2. Go to the "Apps" section in CasaOS.
  3. Click on the app that corresponds to the running Docker container.
  4. Go to the "Logs" tab.
  5. Observe that the string with the format <> is not rendered correctly.

Expected behavior

The string with the format <> should be rendered correctly in the CasaOS UI, just like any other log message.

Screenshots

image

3bfa072c77b49d217815c1594dae0b2

Desktop

  • OS: Debian 12
  • Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36
  • CasaOS: 0.4.9

Cp0204 avatar May 24 '24 05:05 Cp0204