Menu

#37 stray newline in command breaks config

next
closed
None
9
2023-03-04
2021-02-12
rno
No

Tested with versions: 3.15.3, 4.7

it sometimes can be happening two lines seem being one line in some small windows, as:

echo "maybe this text is very long and it is displayed on multiple lines despite being one"
echo b

if adding with copy paste such a string with a newline in an 'own command' 'program:' string.
the newline is displayed as a small square in the requester, yet it seems one line.

now if saving the config and closing worker, then restarting worker,
"error while reading configuration" window pops up, config is broken.

if editing the config file it seems the newline was saved as a plain newline, it wasn't filtered out.

expected: newlines -and maybe other chars- would be filtered out
or maybe there would be an option to use the backup config instead

it's rare yet it take sometime recovering....

thanks

Discussion

  • Ralf Hoffmann

    Ralf Hoffmann - 2021-02-19

    Thanks for pointing this out. There are actually two bugs. Writing and reading newlines in strings should actually work internally which does not. And then of course it does not make sense to support newline in these fields anyway.
    It will be fixed in the next release, but you have to manually fix your config as you wrote.

     

    Last edit: Ralf Hoffmann 2021-02-19
  • Ralf Hoffmann

    Ralf Hoffmann - 2021-02-19
    • status: open --> accepted
    • assigned_to: Ralf Hoffmann
     
  • Ralf Hoffmann

    Ralf Hoffmann - 2021-07-03
    • status: accepted --> closed
     

Log in to post a comment.