Bug 125466 - FILESAVE XLS loses formula type metadata
Summary: FILESAVE XLS loses formula type metadata
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-23 19:20 UTC by SheetJS
Modified: 2020-01-15 03:38 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Offending file (created using the reproduction steps) (5.50 KB, application/x-ole-storage)
2019-05-23 19:21 UTC, SheetJS
Details
Demonstration that LO is capable of writing a correct file (5.50 KB, application/x-ole-storage)
2019-05-23 19:22 UTC, SheetJS
Details

Note You need to log in before you can comment on or make changes to this bug.
Description SheetJS 2019-05-23 19:20:23 UTC
Description:
See https://github.com/SheetJS/js-xlsx/issues/1514

Some formulae results are written with 0 value even though LO knows the actual result is a string.

Steps to Reproduce:
set A1=a, B1=b, C1=CONCAT(A1,",",B1)

Now copy cell C1 down to C2 then save as XLS, then set A2=d and B2=c

Actual Results:
Formula cells C1 and C2 are written with FormulaValue 0

Expected Results:
Formula cells should be written with the string results


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Something about copying the cell triggers the error.  If you just do the first part (A1,B1,C1, then save) LO writes the FormulaValue as a string.
Comment 1 SheetJS 2019-05-23 19:21:19 UTC
Created attachment 151639 [details]
Offending file (created using the reproduction steps)
Comment 2 SheetJS 2019-05-23 19:22:00 UTC
Created attachment 151640 [details]
Demonstration that LO is capable of writing a correct file
Comment 3 Usama 2019-06-16 06:17:03 UTC
Hello,

Thank you for reporting the bug. Unfortunately I can't reproduce in

Version: 6.3.0.0.alpha1+
Build ID: 77ae0abe21f672cf4b7d2e069f1d40d20edc49a7
CPU threads: 4; OS: Linux 4.9; UI render: default; VCL: gtk3; 
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2019-05-31_15:33:33
Locale: en-GB (en_GB.utf8); UI-Language: en-US
Calc: threaded

and
Version: 6.1.5.1
Build ID: 1:6.1.5~rc1-2~bpo9+1
CPU threads: 4; OS: Linux 4.9; UI render: default; VCL: gtk3; 
Locale: en-GB (en_GB.utf8); Calc: group threaded


Could you please try to reproduce it with a master build from https://dev-builds.libreoffice.org/daily/master/ ?
for linux you can use Appimage version:
https://libreoffice.soluzioniopen.com/index.php/daily-version/

You can install it alongsidethe standard version.
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the master build
Comment 4 QA Administrators 2019-12-15 03:36:25 UTC Comment hidden (obsolete)
Comment 5 QA Administrators 2020-01-15 03:38:00 UTC
Dear SheetJS,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp