Bug 132003 - No way to enable external content (without reloading) if at FILEOPEN the request to "Allow Updating" was denied
Summary: No way to enable external content (without reloading) if at FILEOPEN the requ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.2 all versions
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Network Calc-Function
  Show dependency treegraph
 
Reported: 2020-04-09 14:09 UTC by Mike Kaganski
Modified: 2024-09-27 19:42 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
What I see (140.02 KB, image/png)
2020-04-09 21:22 UTC, m_a_riosv
Details
webService.ods: my testing document (15.09 KB, application/vnd.oasis.opendocument.spreadsheet)
2024-09-27 18:57 UTC, Justin L
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kaganski 2020-04-09 14:09:47 UTC
1. Create a new spreadsheet
2. Add a formula: '=WEBSERVICE("https://www.example.net/foo/bar/")'

The result is "ERR:540" ("External content disabled"). But there's no relevant infobar with a button to enable it; and I couldn't find related function in menus (or in "Edit Links" dialog).

Saving and reloading the document indeed brings the infobar; but if I close it, I again cannot enable external content without reloading the document.

Tested with Version: 6.4.3.1 (x64)
Build ID: 4d2b2b47cca498fed6abf712a36d0788901091eb
CPU threads: 12; OS: Windows 10.0 Build 18363; UI render: default; VCL: win; 
Locale: ru-RU (ru_RU); UI-Language: en-US
Calc: CL
Comment 1 m_a_riosv 2020-04-09 21:22:54 UTC
Created attachment 159458 [details]
What I see

=WEBSERVICE("https://www.bitstamp.net/api/ticker/") works fine for me.

with your formula I get #VALUE! Error: Wrong data type

Version: 7.0.0.0.alpha0+ (x64)
Build ID: 95ec2e9b024ff12a3005777c902d7e0975460b1d
CPU threads: 4; OS: Windows 10.0 Build 19592; UI render: Skia/Raster; VCL: win; 
Locale: es-ES (es_ES); UI-Language: en-US Calc: CL
Comment 2 Mike Kaganski 2020-04-09 21:34:09 UTC
I didn't yet found what is the setting that made that here. But do you see it if you save, reload, and close the infobar using closing cross?
Comment 3 m_a_riosv 2020-04-09 22:39:31 UTC
Ok, I see Err:540 reloading the file but seems doesn't matter to do or not 'Allow updating', and the problem it's there with the link "https://www.example.net/foo/bar/" but not "https://www.bitstamp.net/api/ticker/"
Comment 4 QA Administrators 2022-04-10 03:36:02 UTC Comment hidden (obsolete)
Comment 5 Regis Perdreau 2024-09-19 13:03:01 UTC Comment hidden (off-topic)
Comment 6 Justin L 2024-09-27 18:33:11 UTC
(In reply to Mike Kaganski from comment #0)
> 1. Create a new spreadsheet
> 2. Add a formula: '=WEBSERVICE("https://www.example.net/foo/bar/")'
> 
> The result is "ERR:540" ("External content disabled").
Not for me (testing 25.2 in Ubuntu). I get #VALUE!, the same as comment #1.

(In reply to Mike Kaganski from comment #2)
> But do you see Err:540 instead of #VALUE! if you reload (and allow updating)?
Yes, and I guess it is surprising that it wouldn't re-evaluate to #VALUE!, although it seems fairly irrelevant to me whether it indicates an error or unknown value.

This started in LO 6.2 with commit da9a6f426b61937d9cda17f5be3f82d2e15e6ecd
Author: Eike Rathke on Thu Jul 19 17:39:02 2018 +0200
    Related: tdf#118735 introduce FormulaError::LinkFormulaNeedingCheck (Err:540)
    
    To indicate why the result isn't available ("External content
    disabled") and in future maybe signal to the formula cell that it
    could keep the hybrid string result, see source code comment.
Comment 7 Mike Kaganski 2024-09-27 18:37:24 UTC
(In reply to Justin L from comment #6)

The "ERR:540" or "#VALUE!" is irrelevant. The essence of the bug is: there is no way to enable external content. It should be possible at any time; it needs an UNO command for that.
Comment 8 Justin L 2024-09-27 18:57:19 UTC Comment hidden (off-topic)
Comment 9 Justin L 2024-09-27 19:42:16 UTC Comment hidden (off-topic)