Bug 156662

Summary: Always using direct connection to api.languagetool.org (bypasses proxy setting)
Product: LibreOffice Reporter: Norimasa Yamamoto <norimy>
Component: CalcAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: aron.budea, mikekaganski, stephane.guillou
Priority: medium    
Version: 7.5.6.2 release   
Hardware: x86-64 (AMD64)   
OS: Windows (All)   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=158093
https://bugs.documentfoundation.org/show_bug.cgi?id=158352
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 104742, 155314    
Attachments: connect without proxy on startup
contains a line to reproduce

Description Norimasa Yamamoto 2023-08-08 02:45:50 UTC
api.languagetool.org is always using direct connection even if Proxy was set and not use LanguageTools.

Option | Language Setting | LanguageTools Server | [ ] Enable LanguageTools
Option | Internet | Proxy | Proxy Server [Manual]
  (Once changed to [None] or [Manual], you can not set to [System] at ver.7.5.5.2)

If api.languagetool.org to 127.0.0.1 by HOSTS file, it takes few seconds to open Calc Workbook with contains one Line shape.

If BaseURL to invalid (https://api.languagetool.org/v2 to https://DISABLED-api.languagetool.org/v2), opens fine.
Comment 1 Norimasa Yamamoto 2023-09-10 06:53:58 UTC Comment hidden (obsolete)
Comment 2 Norimasa Yamamoto 2023-10-18 02:15:01 UTC
Created attachment 190274 [details]
connect without proxy on startup

Not fixed at 7.5.7.1 release.

I captured Network activity for cleanly open ods file which contains Line shape by Sysinternals ProcMon.
It tells me that soffice.bin connect/retry to api.languagetool.org:https without proxy.
Comment 3 Norimasa Yamamoto 2023-11-10 06:21:15 UTC
Created attachment 190777 [details]
contains a line to reproduce

Not fixed at 7.5.8 release.

I made and attached an ods file which contains only a line.
Comment 4 Stéphane Guillou (stragu) 2023-11-23 21:34:26 UTC Comment hidden (obsolete)
Comment 5 Mike Kaganski 2023-11-24 05:54:01 UTC
(In reply to Stéphane Guillou (stragu) from comment #4)
> Sounds similar to bug 158093.

... and both not repro with master. I even provided a link to the commit that changed how the service obtains the language list, which is what could be the problem.
Comment 6 Mike Kaganski 2023-11-24 07:58:04 UTC
(In reply to Stéphane Guillou (stragu) from comment #4)
> Sounds similar to bug 158093.

But not using proxy is different, and a real bug.
Comment 7 Stéphane Guillou (stragu) 2023-11-24 08:50:10 UTC
Thanks Mike!
(In reply to Mike Kaganski from comment #5)
> I even provided a link to the commit
> that changed how the service obtains the language list, which is what could
> be the problem.
I overlooked that. You were right, the hang is resolved and I commented in bug 158093.
Comment 8 Norimasa Yamamoto 2023-12-11 01:47:45 UTC
Not fixed at 7.5.9.1 release.

I'm waiting to fix bug 158352 related.