[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1001172: Post processing script execution bug



On 19.02.22 08:40, Martin-Éric Racine wrote:
On Sun, Dec 5, 2021 at 7:27 PM Alex Liddiard <alex@whataphoto.org> wrote:
Package: printer-driver-cups-pdf
Version: 3.0.1-9
Severity: normal
X-Debbugs-Cc: alex.liddiard@warwickgrad.net

Dear Maintainer,

I added a script to the PostProcessing option and created a network shared cups-pdf printer.
The script executed correctly when printing from a number of different devices on my network.
I tried printing from a device which used an unusual username (contained brackets and spaces).
The post processing script failed to execute.

Modifying the script and using very simple scripts had no effect.
I enabled full debug logging in cups-pdf and experimented with ipptool.
Could not resolve the issue or find any workarounds.

I discovered the bash command used to execute the script contained errors: special characters contained in the username were not escaped.
This was causing the script execution to fail due to a bash syntax error.

I'm not sure I get what or where the bus is. Was your script not
capable of escaping special charachers? Something else?

Martin-Éric

CUPS-PDF itself is not escaping special characters in usernames when calling external scripts. This needs to be fixed upstream and is on my list.

Cheers,
Volker


Reply to: