Created attachment 177663 [details] testcase When I open some document such as the one attached, LibreOffice tries to connect to the print server, while I don't intend to print the document. This can yield a timeout of 20 - 30 seconds if the print server isn't available or request a password. There are also potential privacy/security issues. This issue seems to come from <config:config-item config:name="PrinterName" config:type="string">Generic Printer</config:config-item> in settings.xml. The Debian bugs I had reported: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=428064 (2007, OpenOffice.Org) https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=708533 (2013, LibreOffice)
I forgot: to reproduce the timeout, create a /etc/cups/client.conf file with a line like ServerName 192.168.0.2:443 (check with telnet that the connection hangs, or choose another IP address).
Dear Vincent Lefevre, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
The bug is still present under Debian/unstable: Version: 25.8.3.2 (X86_64) / LibreOffice Community Build ID: 580(Build:2) CPU threads: 12; OS: Linux 6.17; UI render: default; VCL: gtk3 Locale: en-US (C.UTF-8); UI: en-US Debian package version: 4:25.8.3-1+b1 Calc: threaded To reproduce: 1. Execute "mv ~/.cups ~/cups.bak" (in case there is an existing user CUPS configuration). 2. Create a /etc/cups/client.conf or ~/.cups/client.conf file with the line "ServerName 192.168.0.2:443" (or another address, which should no belong to the local network). 3. Check that "lpq" hangs. 4. Run "libreoffice printername-bug.odt", where printername-bug.odt is the testcase I had attached in 2022. Result: LibreOffice hangs. With "strace -f", I can see: 197212 connect(19, {sa_family=AF_INET, sin_port=htons(443), sin_addr=inet_addr("192.168.0.2")}, 16 <unfinished ...>