teragrep / ajs_01

User interface for Teragrep
Apache License 2.0
0 stars 0 forks source link

Permission list sent to server should be better processed #246

Open BVVLD opened 4 months ago

BVVLD commented 4 months ago

Describe the bug The current object with permission data which UI sends to server on permission save contains suspiciously inconsistent data.

Expected behavior It should be a simple list of 4 arrays of strings, where strings are consistent.

How to reproduce Modify permissions in the note, click save, look in the console for the line: "UI sends the permissions to server: " for the object sent to the server

Example { "readers": [], "owners": [ "\n admin\n " ], "writers": [ "test" ], "runners": [] }

Software version Current AJS_01 version with release tag 7.0.0

Desktop (please complete the following information if relevant): --information is irrelevant--

Additional context The weird strings might originate from server, needs investigation. However, they also should be trimmed, sanitized and formatted on the UI side as well, since they include user input.