#708533 libreoffice: connects to the print server (CUPS) when opening some document

Package:
libreoffice
Source:
libreoffice
Description:
office productivity suite (metapackage)
Submitter:
Vincent Lefevre
Date:
2025-11-27 14:19:01 UTC
Severity:
important
#708533#5
Date:
2013-05-16 13:37:35 UTC
From:
To:
Bug http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=428064 in
OpenOffice is still there in LibreOffice.

When I open some .odt documents, LibreOffice connects to the print
server. There's a short freeze, where the document window contents
haven't been drawn yet. More importantly, this is a privacy problem.

I haven't tried yet, but this may be related to:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=609236

i.e. when PrinterName is defined in settings.xml (some .odt documents
are distributed like that).

#708533#10
Date:
2013-05-16 13:49:52 UTC
From:
To:
The problem (connection to the print server) can be reproduced with
the testcase from this bug report. I've attached it. Though it is
called printername-crash.odt, there's no crash with LibreOffice
(i.e. I can't reproduce bug 609236 with LibreOffice).

#708533#15
Date:
2015-10-22 23:37:05 UTC
From:
To:
Control: tags -1 + moreinfo

Thank you. Opening the document shows me a simple Writer document with
the content::

    Crash when opening this file, due to the predefined PrinterName in
    the settings.xml file.

    OpenOffice.org 3.2.1
    OOO320m19 (Build:9505)
    ooo-build 3.2.1.4, Debian package 1:3.2.1-11

What behaviour do you expect this to produce, and how can I verify
that behaviour?

The document says “OpenOffice.org 3.2.1”. Can you re-try using the
current LibreOffice in Debian?

If the behaviour still occurs for you in that version, please follow
up (using ‘reportbug’ for convenience) to this bug report giving the
appropriate “found” field for the report.

#708533#22
Date:
2015-10-23 01:32:34 UTC
From:
To:
The bug still occurs. I can reproduce it in a more visible way by
setting

ServerName 192.168.0.2:443

in my /etc/cups/client.conf file (note: a "telnet 192.168.0.2 443"
hangs, which is the goal of the test). A strace shows lots of timeout
during 20 seconds. During this time, Libreoffice doesn't show the
document and hangs.

#708533#27
Date:
2015-10-24 01:26:32 UTC
From:
To:
Control: tags -1 - moreinfo

Note: by "doesn't show the document", I mean that nothing is drawn in
the window (which contains things from the background).

#708533#34
Date:
2022-01-20 02:09:06 UTC
From:
To:
Control: found -1 1:7.2.4-2
Control: found -1 1:7.3.0~rc2-2

Ditto with the recent versions.

#708533#43
Date:
2022-01-20 03:15:12 UTC
From:
To:
I've just reported the bug upstream.
#708533#50
Date:
2024-04-17 11:53:46 UTC
From:
To:
Dear submitter,

as the package libreoffice has just been removed from the Debian archive
experimental we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1069123

The version of this package that was in Debian prior to this removal
can still be found using https://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)

#708533#59
Date:
2025-08-07 22:13:21 UTC
From:
To:
Humanitarian Grant of 1.5M for you. Reply for claims
#708533#64
Date:
2025-08-08 02:09:50 UTC
From:
To:
This bug was closed by a spammer.
#708533#71
Date:
2025-09-30 10:07:14 UTC
From:
To:
 Greetings.
 I would like to know if this email address is still valid for writing to
you. I would like to discuss an important matter with you. Thank you.

#708533#76
Date:
2025-09-30 10:24:01 UTC
From:
To:
This bug was closed by a spammer (again!).
#708533#83
Date:
2025-11-27 14:17:21 UTC
From:
To:
Control: found -1 4:25.8.3-1
upstream at

https://bugs.documentfoundation.org/show_bug.cgi?id=146869#c3

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
   not belong to the local network).
3. Check that "lpq" hangs.
4. Run "libreoffice printername-crash.odt", where printername-crash.odt
   is the testcase I had attached at
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=708533#10

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 ...>