[
https://issues.apache.org/jira/browse/GUACAMOLE-2176?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
pilchu updated GUACAMOLE-2176:
------------------------------
Description:
*Summary:*
Polish characters in print job titles are incorrectly encoded in filenames
generated by guacd's virtual printer (Guacamole 1.6.0)
*Description:*
When using Apache Guacamole 1.6.0 with the built-in virtual printer (redirected
printing via guacd), Polish characters in the print job titles are not
correctly handled. Instead of proper Polish letters, filenames are encoded with
unexpected sequences (e.g., {{Zawiadomienie o op_263atach.pdf}} instead of
{{{}Zawiadomienie o opłatach.pdf{}}}).
This issue occurs only in the filename/title of the generated PDF, while the
document content itself correctly displays Polish characters. Ghostscript is
installed and properly invoked in the container, and the problem is likely
caused by incorrect character encoding or mapping in guacd when converting the
print job title to a filename.
*Steps to reproduce:*
# Use Apache Guacamole 1.6.0 with the virtual printer feature enabled.
# Print a document with Polish characters in the document title (e.g.,
containing ą, ę, ł, ć, etc.).
# Observe the generated PDF filename in the browser or storage location.
*Guac logs:*
guacd[15]: INFO: Print job created
guacd[15]: INFO: Created PDF filter process PID=54
guacd[15]: DEBUG: Reading output from filter process...
guacd[54]: INFO: Running gs
guacd[15]: DEBUG: Beginning print stream: (Ksi\352gowo\234\346.txt \227
Notatnik).pdf
guacd[15]: DEBUG: Sending 484 byte(s) of filtered output.
guacd[15]: DEBUG: Sending 65 byte(s) of filtered output.
guacd[15]: DEBUG: Sending 2595 byte(s) of filtered output.
guacd[15]: DEBUG: End of print stream.
guacd[15]: DEBUG: Print job completed.
guacd[15]: INFO: Print job closed
*Expected behavior:*
Polish characters should be preserved and correctly displayed in the PDF
filename.
*Actual behavior:*
Polish characters in the filename are replaced with sequences like
{{{}_263{}}}, resulting in incorrect filenames.
was:
*Summary:*
Polish characters in print job titles are incorrectly encoded in filenames
generated by guacd's virtual printer (Guacamole 1.6.0)
*Description:*
When using Apache Guacamole 1.6.0 with the built-in virtual printer (redirected
printing via guacd), Polish characters in the print job titles are not
correctly handled. Instead of proper Polish letters, filenames are encoded with
unexpected sequences (e.g., {{Zawiadomienie o op_263atach.pdf}} instead of
{{{}Zawiadomienie o opłatach.pdf{}}}).
This issue occurs only in the filename/title of the generated PDF, while the
document content itself correctly displays Polish characters. Ghostscript is
installed and properly invoked in the container, and the problem is likely
caused by incorrect character encoding or mapping in guacd when converting the
print job title to a filename. Logs with debug level from guacd show creation
of print jobs and invocation of Ghostscript but do not provide detailed
information on filename encoding.
*Steps to reproduce:*
# Use Apache Guacamole 1.6.0 with the virtual printer feature enabled.
# Print a document with Polish characters in the document title (e.g.,
containing ą, ę, ł, ć, etc.).
# Observe the generated PDF filename in the browser or storage location.
*Expected behavior:*
Polish characters should be preserved and correctly displayed in the PDF
filename.
*Actual behavior:*
Polish characters in the filename are replaced with sequences like
{{{}_263{}}}, resulting in incorrect filenames.
> Polish characters in print job titles are incorrectly encoded in filenames
> generated by guacd's virtual printer
> ---------------------------------------------------------------------------------------------------------------
>
> Key: GUACAMOLE-2176
> URL: https://issues.apache.org/jira/browse/GUACAMOLE-2176
> Project: Guacamole
> Issue Type: Bug
> Components: guacamole-docker, guacamole-server
> Affects Versions: 1.6.0
> Environment: Apache Guacamole 1.6.0
> guacd running in Docker container
> Reporter: pilchu
> Priority: Minor
>
> *Summary:*
> Polish characters in print job titles are incorrectly encoded in filenames
> generated by guacd's virtual printer (Guacamole 1.6.0)
> *Description:*
> When using Apache Guacamole 1.6.0 with the built-in virtual printer
> (redirected printing via guacd), Polish characters in the print job titles
> are not correctly handled. Instead of proper Polish letters, filenames are
> encoded with unexpected sequences (e.g., {{Zawiadomienie o op_263atach.pdf}}
> instead of {{{}Zawiadomienie o opłatach.pdf{}}}).
> This issue occurs only in the filename/title of the generated PDF, while the
> document content itself correctly displays Polish characters. Ghostscript is
> installed and properly invoked in the container, and the problem is likely
> caused by incorrect character encoding or mapping in guacd when converting
> the print job title to a filename.
> *Steps to reproduce:*
> # Use Apache Guacamole 1.6.0 with the virtual printer feature enabled.
> # Print a document with Polish characters in the document title (e.g.,
> containing ą, ę, ł, ć, etc.).
> # Observe the generated PDF filename in the browser or storage location.
> *Guac logs:*
> guacd[15]: INFO: Print job created
> guacd[15]: INFO: Created PDF filter process PID=54
> guacd[15]: DEBUG: Reading output from filter process...
> guacd[54]: INFO: Running gs
> guacd[15]: DEBUG: Beginning print stream: (Ksi\352gowo\234\346.txt \227
> Notatnik).pdf
> guacd[15]: DEBUG: Sending 484 byte(s) of filtered output.
> guacd[15]: DEBUG: Sending 65 byte(s) of filtered output.
> guacd[15]: DEBUG: Sending 2595 byte(s) of filtered output.
> guacd[15]: DEBUG: End of print stream.
> guacd[15]: DEBUG: Print job completed.
> guacd[15]: INFO: Print job closed
> *Expected behavior:*
> Polish characters should be preserved and correctly displayed in the PDF
> filename.
> *Actual behavior:*
> Polish characters in the filename are replaced with sequences like
> {{{}_263{}}}, resulting in incorrect filenames.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)