Bug 153060 - Only request authentication once per domain for linked images
Summary: Only request authentication once per domain for linked images
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.4.0.3 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Network Files-Linked WebDAV
  Show dependency treegraph
 
Reported: 2023-01-17 09:37 UTC by Buovjaga
Modified: 2023-02-02 21:15 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Buovjaga 2023-01-17 09:37:35 UTC
1. Open attachment 180617 [details] from bug 149475

Observe two authentication dialogs, one for each linked image. It seems like a crazy UX issue, if you have a hundred linked images.
Comment 1 Hossein 2023-01-24 08:41:24 UTC
Reproduced with LO 7.4.0.3
Version: 7.4.0.3 (x64) / LibreOffice Community
Build ID: f85e47c08ddd19c015c0114a68350214f7066f5a
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: fa-IR (fa_IR); UI: en-US
Calc: threaded
Comment 2 Gabor Kelemen (allotropia) 2023-02-02 21:15:08 UTC
Started at
https://git.libreoffice.org/core/+/bdef11f5337ecc87556a92693f6b7b5e200eb29e%5E%21

author	Michael Stahl <michael.stahl@allotropia.de>	Mon Oct 11 12:21:14 2021 +0200
committer	Michael Stahl <michael.stahl@allotropia.de>	Tue Nov 23 20:08:55 2021 +0100

configure: default to --with-webdav=curl

Before there was only one password dialog. Console output in 7.3 at that commit:

*   Trying 195.201.107.30:443...
* Connected to u285001.your-storagebox.de (195.201.107.30) port 443 (#0)
* Initializing NSS with certpath: none
* WARNING: failed to load NSS PEM library libnsspem.so. Using OpenSSL PEM certificates will not work.
*  CAfile: none
*  CApath: none
* loaded libnssckbi.so
* ALPN, server accepted to use http/1.1
* SSL connection using TLS_AES_256_GCM_SHA384
* Server certificate:
* subject: CN=*.your-storagebox.de
*  start date: dec 20 00:00:00 2022 GMT
*  expire date: jan 10 23:59:59 2024 GMT
*  common name: *.your-storagebox.de
*  issuer: CN=Thawte RSA CA 2018,OU=www.digicert.com,O=DigiCert Inc,C=US
> OPTIONS /Dokumente/tmp/x/Rechnungen+Angebote/2014/Rechnung.ott HTTP/1.1
Host: u285001.your-storagebox.de
User-Agent: LibreOffice 7.3.0.0 curl/7.79.1 NSS/3.71
Accept: */*
Accept-Encoding: deflate, gzip

* Mark bundle as not supporting multiuse
< HTTP/1.1 401 Unauthorized
< Date: Thu, 02 Feb 2023 21:10:38 GMT
< Server: Apache
< WWW-Authenticate: Basic realm="WebDAV Restricted"
< Content-Length: 381
< Content-Type: text/html; charset=iso-8859-1
< 
* Excess found: excess = 381 url = /Dokumente/tmp/x/Rechnungen+Angebote/2014/Rechnung.ott (zero-length body)
* Connection #0 to host u285001.your-storagebox.de left intact
*   Trying 195.201.107.30:443...
* Connected to u285001.your-storagebox.de (195.201.107.30) port 443 (#0)
* WARNING: failed to load NSS PEM library libnsspem.so. Using OpenSSL PEM certificates will not work.
*  CAfile: none
*  CApath: none
* ALPN, server accepted to use http/1.1
* SSL connection using TLS_AES_256_GCM_SHA384
* Server certificate:
* subject: CN=*.your-storagebox.de
*  start date: dec 20 00:00:00 2022 GMT
*  expire date: jan 10 23:59:59 2024 GMT
*  common name: *.your-storagebox.de
*  issuer: CN=Thawte RSA CA 2018,OU=www.digicert.com,O=DigiCert Inc,C=US
> OPTIONS /Dokumente/Seitenvorlagen/oben-600.png HTTP/1.1
Host: u285001.your-storagebox.de
User-Agent: LibreOffice 7.3.0.0 curl/7.79.1 NSS/3.71
Accept: */*
Accept-Encoding: deflate, gzip

* Mark bundle as not supporting multiuse
< HTTP/1.1 401 Unauthorized
< Date: Thu, 02 Feb 2023 21:10:38 GMT
< Server: Apache
< WWW-Authenticate: Basic realm="WebDAV Restricted"
< Content-Length: 381
< Content-Type: text/html; charset=iso-8859-1
< 
* Excess found: excess = 381 url = /Dokumente/Seitenvorlagen/oben-600.png (zero-length body)
* Connection #0 to host u285001.your-storagebox.de left intact
* Found bundle for host u285001.your-storagebox.de: 0x7f2540012310 [serially]
* Re-using existing connection! (#0) with host u285001.your-storagebox.de
* Connected to u285001.your-storagebox.de (195.201.107.30) port 443 (#0)
> OPTIONS /Dokumente/Seitenvorlagen/oben-600.png HTTP/1.1
Host: u285001.your-storagebox.de
User-Agent: LibreOffice 7.3.0.0 curl/7.79.1 NSS/3.71
Accept: */*
Accept-Encoding: deflate, gzip

* Mark bundle as not supporting multiuse
< HTTP/1.1 401 Unauthorized
< Date: Thu, 02 Feb 2023 21:10:39 GMT
< Server: Apache
< WWW-Authenticate: Basic realm="WebDAV Restricted"
< Content-Length: 381
< Content-Type: text/html; charset=iso-8859-1
< 
* Excess found: excess = 381 url = /Dokumente/Seitenvorlagen/oben-600.png (zero-length body)
* Connection #0 to host u285001.your-storagebox.de left intact
* Found bundle for host u285001.your-storagebox.de: 0x7f2540012310 [serially]
* Re-using existing connection! (#0) with host u285001.your-storagebox.de
* Connected to u285001.your-storagebox.de (195.201.107.30) port 443 (#0)
> OPTIONS /Dokumente/Seitenvorlagen/unten-600.png HTTP/1.1
Host: u285001.your-storagebox.de
User-Agent: LibreOffice 7.3.0.0 curl/7.79.1 NSS/3.71
Accept: */*
Accept-Encoding: deflate, gzip

* Mark bundle as not supporting multiuse
< HTTP/1.1 401 Unauthorized
< Date: Thu, 02 Feb 2023 21:10:39 GMT
< Server: Apache
< WWW-Authenticate: Basic realm="WebDAV Restricted"
< Content-Length: 381
< Content-Type: text/html; charset=iso-8859-1
< 
* Excess found: excess = 381 url = /Dokumente/Seitenvorlagen/unten-600.png (zero-length body)
* Connection #0 to host u285001.your-storagebox.de left intact