[pbs-devel] [RFC PATCH widget-toolkit/backup] percent encode the task status line

Dominik Csapak d.csapak at proxmox.com
Fri Oct 15 10:07:28 CEST 2021


to avoid having a newline (and other control characters) in the task status,
percent-encode the last line

decoding happens in the web ui

alternatively, it would make sense to decode it again in the backend
directly, since only the writing into the logfile is problematic. this would
make the api a bit nicer, since an api user would not have to do this
themselves. on the other hand, not having control characters in the api
result makes it a bit safer i suppose...

proxmox-widget-toolkit:

Dominik Csapak (1):
  Utils: percent-decode the task status

 src/Utils.js             | 12 +++++++++++-
 src/panel/LogView.js     |  6 ++++++
 src/window/TaskViewer.js |  2 +-
 3 files changed, 18 insertions(+), 2 deletions(-)

proxmox-backup:

Dominik Csapak (1):
  rest-server: tasks: percent-encode the task status line

 pbs-tools/src/percent_encoding.rs      | 5 +++++
 proxmox-rest-server/src/worker_task.rs | 4 +++-
 2 files changed, 8 insertions(+), 1 deletion(-)

-- 
2.30.2






More information about the pbs-devel mailing list