Bug 156062 - LanguageTool phones home even when disabled
Summary: LanguageTool phones home even when disabled
Status: RESOLVED DUPLICATE of bug 158093
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.5.4.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-26 15:18 UTC by brazz
Modified: 2024-05-03 23:28 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
opensnitch screenshot (19.35 KB, image/png)
2023-06-26 15:57 UTC, brazz
Details
tcpdump (3.93 KB, text/plain)
2023-06-26 19:00 UTC, brazz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description brazz 2023-06-26 15:18:46 UTC
In LibreOffice 7.5.4.2, LanguageTool tries to phone home even when it is explicitly disabled. It does so when the application is launched.

Steps to reproduce:
- assuming Tools > Options > Language Settings > LanguageTool server > Enable LanguageTool is ticked
- untick
- hit Apply/Ok
- close every LibreOffice window
- open an office document or launch a LibreOffice component (Writer, Calc...)

Expected results:
- No connection to LanguageTool server detected
- Application loads fast

Actual results:
- LibreOffice still tries to connect to api.languagetool.org. It looks like a DNS request (UDP 53)
- Application loading time is affected

I'm not here to discuss whether LanguageTool integration in LibreOffice is a good thing or not. I think that when a user disables LanguageTool, this module should be totally disabled and should not try to initiate any outbound connection.
Comment 1 Julien Nabet 2023-06-26 15:36:43 UTC
On which Linux distrib (+version) are you?

What command do you use (I tried with "ss" on Debian) and could you copy paste the output line of it showing "api.languagetool.org" (or its ip) ?
Comment 2 brazz 2023-06-26 15:57:09 UTC
Created attachment 188095 [details]
opensnitch screenshot

opensnitch screenshot showing libreoffice connection attempt to languagetool
Comment 3 brazz 2023-06-26 15:59:27 UTC
Linux distribution is Kubuntu 22.04.

I didn't used any command. The connection attempt was detected by Opensnitch (an application firewall), then blocked.
See previous attachment.
Comment 4 Julien Nabet 2023-06-26 18:32:53 UTC
Thank you for the feedback.
I tried to install opensnitch but it requires a dependency which may cause some pb on my machine so I'll put it back to UNCONFIRMED since I don't have more questions.
Comment 5 Julien Nabet 2023-06-26 18:58:27 UTC
Ok I was wrong, it was just a package that I don't usually use so I'll be able to remove it later when I'll uninstall opensnitch.
I could indeed reproduce this.
Comment 6 brazz 2023-06-26 19:00:40 UTC
Created attachment 188099 [details]
tcpdump
Comment 7 brazz 2023-06-26 19:01:49 UTC
Please find attached a tcpdump.
I don't know if it's useful, I just searched for a way to monitor connections in realtime.
Comment 8 Julien Nabet 2023-06-26 20:17:03 UTC
I forgot to tell I could reproduce this with LO Debian testing package 7.4.5.1

On pc Debian x86-64 with master sources updated today, I don't reproduce this.
wonder if  9aca8e1333393af69972450d5e7e924cdfed4269
"Use officecfg instead of SvxLanguageToolOptions"
may have helped here or if I missed something.

Would it be possible you test a daily build from 7.6 or master (future 24.2) branch?
Comment 9 brazz 2023-06-26 20:26:48 UTC
Sorry, this is a production workstation, I don't want to mess things around with a beta version...
Comment 10 Julien Nabet 2023-06-26 20:41:57 UTC
(In reply to brazz from comment #9)
> Sorry, this is a production workstation, I don't want to mess things around
> with a beta version...

No pb. Now if you got another workstation for test purpose, it could be interesting you give it a try.
Comment 11 brazz 2023-06-27 17:01:32 UTC
(In reply to Julien Nabet from comment #10)
> No pb. Now if you got another workstation for test purpose, it could be
> interesting you give it a try.
My other computers are headless, sorry.
Comment 12 Aron Budea 2024-05-03 23:28:58 UTC
Looks like a duplicate of bug 158093, and should be fixed.

*** This bug has been marked as a duplicate of bug 158093 ***