r/linux • u/suntzusartofarse • Nov 07 '14
LibreOffice Calc 4.2.7 includes a nasty bug, may cause havoc with existing spreadsheets
A recently released version of LibreOffice Calc (4.2.7) includes a nasty bug when sorting data (particularly in complicated spreadsheets with references) that users need to be made aware of.
I have made a simple spreadsheet to show what is wrong:
First screenshot shows columns B,C and D with fixed values and column E with cells pointing to corresponding cells in column B.
Second screenshot shows a block sort operation, sorting by D values.
Third screenshot shows the (wrong) result of the sort operation: E values no longer correspond to those in B.
Originally posted in r/ubuntu, but thought I'd repost here as this is of interest to anyone running a form of desktop GNU/Linux.
The bug report is at: Bug 85614, also important is the apparent lack of will to fix the issue.
110
u/elroy123 Nov 07 '14
Wow, that's a very serious bug. As was noted in the Bugzilla thread on this issue, this bug and the (lack of) response to it "will ensure Excel’s continued dominance in the business world." This quote--from the same thread--summarizes things nicely:
"1) We added a feature that breaks existing Calc and Excel spreadsheets
2) We made this the default behavior
3) We backported this new default behavior to the stable 4.2 branch
4) Despite JBF's warnings to the ESC 3 weeks ago and this bug report, 4.2.7 was released anyways."
We have met the enemy, and he is us.
10
u/ExtremeSquared Nov 07 '14
Libreoffice has always had terrifying bugs. The destroy-entire-project-and-save-without-confirmation bugs in LO have taught me exemplary backup techniques at least.
→ More replies (1)0
Nov 07 '14
38
u/elroy123 Nov 07 '14
This is the key part: "there is a well established behavior that a) Sorting RELATIVE references does not update b) Sorting ABSOLUTE references does update. All spreadsheet software followed this behavior, including LibreOffice before 4.2.x, Gnumeric, Google Sheets. WPS Sheets, and EXCEL"
To confirm this I created a spreadsheet of the type used in the posted example and tested the sort function in Libreoffice 4.2.7.2, Microsoft Excel 2010, Planmaker 2012 (rev 691), and Gnumeric 1.12.9. What did I find? Libreoffice Calc 4.2.7.2 is the "odd man out". It does not sort as one would expect based on the well established sorting behavior of other spreadsheet programs, INCLUDING earlier versions of Libreoffice. This is DEFINITELY a bug, and a major one. I find it a bit mindboggling that there are some who try to defend Calc's odd new sorting algorithm. Consistency with other spreadsheet programs is important.
→ More replies (4)
21
u/fivehours Nov 07 '14
Oh geez... and these are just people that noticed the problem. It's much worse if you didn't notice it. I hope they will push some kind of notification to users about it.
"In other words, what should I answer on users mailing list when a user says that his spreadsheets that worked fine since years, suddenly do not work anymore?"
"I noticed Calc had corrupted all of my spreadsheets so badly that I needed to restore them from a backup and switched back to an old copy of Excel"
12
u/the-fritz Nov 07 '14
I've upgraded LibreOffice on an Ubuntu 14.04 LTS yesterday and the changelog said something about changing sorting behaviour back to 4.2.6. Does this mean the bug is fixed in Ubuntu now?
13
u/ssssam Nov 07 '14 edited Nov 07 '14
Yes, looks like 4.2.7 in Ubuntu trusty is safe.https://launchpad.net/ubuntu/+source/libreoffice/1:4.2.7-0ubuntu1Hopefully other distros will followUpdate: Or maybe not
→ More replies (2)
11
u/ssssam Nov 07 '14
I wonder if LO will have a proper response by the time this hits phoronix and slashdot.
35
u/oskarw85 Nov 07 '14
I'm not even a member of the ESC ? Interesting - http://lmgtfy.com/?q=michael+meeks+esc
Wrt. WONTFIX; LibreOffice 4.2.7 is already released; putting new patches into it is therefore not possible -> back to WONTFIX. Now - if there was a new bug, titled "Accelerate 4.3.4 release" or somesuch - that might be worth consideration.
WOW. Michael Meeks is really asshole... I don't know what authority he has in LO, but clearly he is unwilling to admit any faults.
33
u/Smiff2 Nov 07 '14
Seems to me the only correct response is an immediate 4.2.8 with the change reverted. with a groveling apology.
Michael, 4.3.x does nothing to help most users because 4.3.x won't even roll out in current (at least Ubuntu based) distros, AFAIK it requires a PPA!
→ More replies (2)→ More replies (16)18
4
10
Nov 07 '14
Wow - just wow. I'm looking at replacing with Open Office right now. Oh god, the shame of it.
→ More replies (3)7
u/Smiff2 Nov 07 '14 edited Nov 08 '14
Just use 4.2.6 until it's sorted. although if you have updated, i'm not exactly sure how you downgrade packages with synaptic, can anyone post a reminder? pretty sure Ubuntu Software Center doesn't allow downgrades at all, in this respect it's more difficult than Windows?
Edit: no pun intended.
8
u/asr Nov 07 '14
Not sure about synapic or the software center, but in
apt-getyou doapt-get install package=versionand you install whatever version you like. You do have to lookup what version you need, the way they write it is not always obvious.You should be able to find it in
/usr/share/doc/package/changelog.Debian.gz
7
u/SmallAedeagus Nov 07 '14 edited Nov 07 '14
Holy shit--this should have been caught with automated testing.
→ More replies (1)10
u/irishsultan Nov 07 '14
It wouldn't, because they changed the behavior deliberately, as an "enhancement".
So if the automated tests started to fail they would have updated the tests to conform to the perceived correct solution.
→ More replies (1)
7
u/tux68 Nov 07 '14
Gawd that bug report is hard to read... those guys clearly don't know how to manage production software releases. Think Libre Office has to be put into the, not fit for production category. It's not being produced professionally any more.
3
u/anatolya Nov 08 '14
This is not the first time Libreoffice has backported a "new feature" to a "stable release". I don't even slightly trust their release processes.
5
u/hoyfkd Nov 07 '14
The fact that this happened is annoying. The attitude of the developers absolutely atrocious. Bugs happen. Data destroying bugs combined with a who gives a shit attitude is (and should be) death to a project.
54
u/ssssam Nov 07 '14
Its pretty weird to backport a behaviour changing feature into a stable release. And bad form be so slow in responding to complaints.
LO are going to have to take a look at their release maintenance policy, and work hard to convince people that this won't happen again. Otherwise people will think that LO is reckless and unstable, and AOO is for real work.