#1001172 Post processing script execution bug

Package:
printer-driver-cups-pdf
Source:
cups-pdf
Description:
printer driver for PDF writing via CUPS
Submitter:
Alex Liddiard
Date:
2025-03-29 08:51:04 UTC
Severity:
normal
Tags:
#1001172#5
Date:
2021-12-05 17:25:14 UTC
From:
To:
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.

Best regards,
Alex Liddiard

#1001172#10
Date:
2022-02-19 07:40:00 UTC
From:
To:
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

#1001172#15
Date:
2022-02-20 13:59:55 UTC
From:
To:
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