Bug 153210 - Specific URLs fail since version 7.3
Summary: Specific URLs fail since version 7.3
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
(earliest affected) beta1+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL: https://ask.libreoffice.org/t/calc-co...
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Files-Linked WebDAV
  Show dependency treegraph
Reported: 2023-01-26 08:15 UTC by Mike Kaganski
Modified: 2023-03-31 15:30 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:

A linked image is not shown since 7.3 (11.32 KB, application/vnd.oasis.opendocument.text)
2023-01-26 08:15 UTC, Mike Kaganski

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kaganski 2023-01-26 08:15:59 UTC
Created attachment 184917 [details]
A linked image is not shown since 7.3

The attachment has a linked image, pointing to


This image is not shown in 7.3+, while it is shown OK in 7.2. It is likely to relate to libcurl rework, and so may be related to bug 146460 and bug 148429.

This is shown in console when loading the document:

> warn:ucb.ucp.webdav:24624:21340:ucb/source/ucp/webdav-curl/webdavcontent.cxx:4139: OPTIONS - SC_BAD_REQUEST or SC_INTERNAL_SERVER_ERROR for URL <https://image.shopmoment.com/general/Moment-Benro-A3883TS6PRO-Benro-Aero6-Pro-Travel-Video-Tripod-Aluminum-thumbnail.jpg>, HTTP error: 400, '
> =>
> HTTP/1.1 400 Bad Request'

Ref: https://ask.libreoffice.org/t/86973
Comment 1 Stéphane Guillou (stragu) 2023-01-26 09:59:51 UTC
Confirmed regression not in:

Version: / LibreOffice Community
Build ID: 8d71d29d553c0f7dcbfa38fbfda25ee34cce99a2
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

But present in:

Version: / LibreOffice Community
Build ID: e114eadc50a9ff8d8c8a0567d6da8f454beeb84f
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Will bisect now.
Comment 2 Stéphane Guillou (stragu) 2023-01-26 14:40:25 UTC
Running from console, when it fails loading the image:

*   Trying
* Connected to image.shopmoment.com ( 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_128_GCM_SHA256
* Server certificate:
* subject: CN=sni.cloudflaressl.com,O="Cloudflare, Inc.",L=San Francisco,ST=California,C=US
*  start date: May 14 00:00:00 2022 GMT
*  expire date: May 14 23:59:59 2023 GMT
*  common name: sni.cloudflaressl.com
*  issuer: CN=Cloudflare Inc ECC CA-3,O="Cloudflare, Inc.",C=US
> OPTIONS /general/Moment-Benro-A3883TS6PRO-Benro-Aero6-Pro-Travel-Video-Tripod-Aluminum-thumbnail.jpg HTTP/1.1
Host: image.shopmoment.com
User-Agent: LibreOffice curl/7.79.1 NSS/3.71
Accept: */*
Accept-Encoding: deflate, gzip
* Mark bundle as not supporting multiuse
< HTTP/1.1 400 Bad Request
< Date: Thu, 26 Jan 2023 14:26:23 GMT
< Content-Type: application/xml
< Transfer-Encoding: chunked
< Connection: keep-alive
< x-amz-request-id: SZFDQTG7GN2GYND0
< x-amz-id-2: knwH/u2mNxMB8M019COqtounVQNR+viwHufUX3N/BrSNCQCNunVWO7jjZgPbQC1XzMB49dlTHxumqGzKRX124w==
< CF-Cache-Status: DYNAMIC
< Server-Timing: cf-q-config;dur=8.999999408843e-06
< Server: cloudflare
< CF-RAY: 78f9ec5c9ccfd29b-CDG
* Excess found: excess = 302 url = /general/Moment-Benro-A3883TS6PRO-Benro-Aero6-Pro-Travel-Video-Tripod-Aluminum-thumbnail.jpg (zero-length body)
* Connection #0 to host image.shopmoment.com left intact

About that warning: I've got libnss3 / libnsspem installed but it doesn't make the warning disappear.

Bibisected with linux-64-7.3 repo to first bad commit 115b11fc60754321653e4f44d88d1b033163c3da which points to core commit:

commit bdef11f5337ecc87556a92693f6b7b5e200eb29e
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
tree 3c8c1f20cda45c11368ab6ea5c13c3cb488969ef
parent c2a581ffc1f4e3888c5c243932b71c3d96e8ba8f
configure: default to --with-webdav=curl
Change-Id: I00842dec9512a8fe0d68a507e8a1467df97709f2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123461

Michael, can you have a look at it?
Comment 3 Stéphane Guillou (stragu) 2023-03-31 15:30:03 UTC
Update to curl 8 has not solved this.
Still present in a recent debug build:

Version: (X86_64) / LibreOffice Community
Build ID: 1b463f697405e64a03378fb38a32172c4d3c25e6
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Same warning as Mike in the console.