Bug 114918 - Updating links doesn't work after reloading an XLSX file with cell reference in function
Summary: Updating links doesn't work after reloading an XLSX file with cell reference ...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
5.4.2.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-08 17:34 UTC by Gabor Kelemen (allotropia)
Modified: 2018-11-06 07:29 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example link source file made in LO 5.4 (14.09 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2018-01-08 17:45 UTC, Gabor Kelemen (allotropia)
Details
Example link target file made with LO 5.4 (15.04 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2018-01-08 17:47 UTC, Gabor Kelemen (allotropia)
Details
Formula syntax settings used to test the bug (183.30 KB, image/png)
2018-01-08 17:57 UTC, Gabor Kelemen (allotropia)
Details
Screenshot of the documents before updating the link (209.92 KB, image/png)
2018-01-08 18:03 UTC, Gabor Kelemen (allotropia)
Details
Query about updating the links to the other file (223.84 KB, image/png)
2018-01-08 18:04 UTC, Gabor Kelemen (allotropia)
Details
Screenshot of the documents after updating the link (210.21 KB, image/png)
2018-01-08 18:05 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2018-01-08 17:34:36 UTC
These spreadsheets were created with LibreOffice 5.4.3.2 and LibreOffice Dev. 6.0 and contain links. If we want to refer to an external file with cell reference or a function, we have to click in the function to refresh the links. If we just open the file and click Yes on the “This file contains links to other files. Should they be updated?” message, nothing happens.

Steps to reproduce:
1. Create a new spreadsheet with LibreOffice Calc.
2. Click on Tools then choose Options.
3. In the Options set the LibreOffice Calc Formula options just like as you can see at the attached Formula_syntax_setting.PNG file. I use these settings because this is the only one which is interoperable with Microsoft Office Excel.
4. Fill the cells with some simple data.
5. Save the file as “Source.xlsx”. This will be the source file which contains the queried data.
6. Create a new spreadsheet in Calc and save as Function-update-link-target_LO-54.xlsx. This is the reference file.
7. In the Function-update-link-target_LO-54.xlsx file create a correct function or a simple cell reference which refers to the “Source file” data.
8. Save the file and close it.
9. Modify the “Source.xlsx” file data, which is referenced by the reference file.
10. Save the file.
11. Open the reference file (Function-update-link-target_LO-54.xlsx) and click YES on the  “Should they be updated?” message.

Actual results:
When I click YES on the “Should they be updated?” dialog, nothing happened. If I choose  the “Always” Update links when opening, instead of “On request” I still get the dialog.

Expected results:
When I click YES on the “Should they be updated?” dialog, the links should be updated. If I choose the “Always” Update links when opening, instead of “On request” the links should be updated automatically without any message.


Version: 5.4.3.2
Build ID: 92a7159f7e4af62137622921e809f8546db437e5
CPU threads: 4; OS: Windows 6.1; UI render: default; 
Locale: hu-HU (hu_HU); Calc: group

Version: 6.0.0.0.beta1+
Build ID: 29228e83df009cf76ac819ed024527be1092f065
CPU threads: 4; OS: Windows 6.1; UI render: default; 
TinderBox: Win-x86@42, Branch:libreoffice-6-0, Time: 2017-12-04_23:15:34
Locale: hu-HU (hu_HU); Calc: group threaded
Comment 1 Gabor Kelemen (allotropia) 2018-01-08 17:45:37 UTC
Created attachment 138977 [details]
Example link source file made in LO 5.4
Comment 2 Gabor Kelemen (allotropia) 2018-01-08 17:47:01 UTC
Created attachment 138978 [details]
Example link target file made with LO 5.4
Comment 3 Gabor Kelemen (allotropia) 2018-01-08 17:57:03 UTC
Created attachment 138979 [details]
Formula syntax settings used to test the bug
Comment 4 Gabor Kelemen (allotropia) 2018-01-08 18:03:45 UTC
Created attachment 138980 [details]
Screenshot of the documents before updating the link
Comment 5 Gabor Kelemen (allotropia) 2018-01-08 18:04:24 UTC
Created attachment 138981 [details]
Query about updating the links to the other file
Comment 6 Gabor Kelemen (allotropia) 2018-01-08 18:05:25 UTC
Created attachment 138982 [details]
Screenshot of the documents after updating the link
Comment 7 Buovjaga 2018-02-11 11:36:01 UTC
I'm stuck after step 8: I wanted to reload to see that it works correctly at this step, but the reference gets messed up.

This is my formula:
=SUM('file:///home/user/libobugs/source.xlsx'#$Sheet1.B1:B3)

Then I get this, somehow the path is duplicated??

The following external file could not be loaded. Data linked from this file > did not get updated.

file:///home/user/libobugs/home/user/libobugs/source.xlsx

Arch Linux 64-bit
Version: 6.1.0.0.alpha0+
Build ID: c6a23023150c164a19236139fa413d43006ce21c
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on February 11th 2018
Comment 8 Xisco Faulí 2018-03-15 10:07:34 UTC
Hi Gabor,
Could you please help buovjaga in comment 7 ?
Comment 9 Xisco Faulí 2018-05-02 10:24:08 UTC
(In reply to Xisco Faulí from comment #8)
> Hi Gabor,
> Could you please help buovjaga in comment 7 ?

Putting to NEEDINFO until the information has been provided...
Comment 10 QA Administrators 2018-11-05 16:08:33 UTC Comment hidden (obsolete)
Comment 11 Gabor Kelemen (allotropia) 2018-11-06 07:29:47 UTC
We have rechecked with 6.1.0 and we can no longer reproduce this one.