public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [RFC PATCH widget-toolkit/backup] percent encode the task status line
@ 2021-10-15  8:07 Dominik Csapak
  2021-10-15  8:07 ` [pbs-devel] [RFC PATCH widget-toolkit 1/1] Utils: percent-decode the task status Dominik Csapak
  2021-10-15  8:07 ` [pbs-devel] [RFC PATCH proxmox-backup 1/1] rest-server: tasks: percent-encode the task status line Dominik Csapak
  0 siblings, 2 replies; 3+ messages in thread
From: Dominik Csapak @ 2021-10-15  8:07 UTC (permalink / raw)
  To: pbs-devel

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





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-10-15  8:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-15  8:07 [pbs-devel] [RFC PATCH widget-toolkit/backup] percent encode the task status line Dominik Csapak
2021-10-15  8:07 ` [pbs-devel] [RFC PATCH widget-toolkit 1/1] Utils: percent-decode the task status Dominik Csapak
2021-10-15  8:07 ` [pbs-devel] [RFC PATCH proxmox-backup 1/1] rest-server: tasks: percent-encode the task status line Dominik Csapak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal