Bug 61525 - Unprotected cell remains locked even after Cell Protection is unchecked.
Summary: Unprotected cell remains locked even after Cell Protection is unchecked.
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
4.0.0.1 rc
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-26 18:54 UTC by batayub
Modified: 2013-06-28 14:20 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
sample document (7.20 KB, application/vnd.oasis.opendocument.spreadsheet)
2013-06-25 09:20 UTC, Rolf Eder
Details
cell format (245.28 KB, image/png)
2013-06-25 09:22 UTC, Rolf Eder
Details
protect sheet (204.98 KB, image/png)
2013-06-25 09:23 UTC, Rolf Eder
Details
sample file #2 (14.92 KB, application/vnd.oasis.opendocument.spreadsheet)
2013-06-25 16:06 UTC, Rolf Eder
Details

Note You need to log in before you can comment on or make changes to this bug.
Description batayub 2013-02-26 18:54:23 UTC
Unprotected cell remains locked even after Cell Protection is unchecked in Cell Format and Sheet Protected.

1. I formatted a cell and unchecked protection.
2. Then I protected the Sheet with and without a password.
3. The unprotected cell remains protected and is uneditable.

LibreOffice 4.0 installed and then OpenOffice 3.4 uninstalled.
The same scenario emulated in MSOffice 2003 and it works fine.
Comment 1 s.p.helma 2013-04-04 13:30:13 UTC
I have the same problem with LO 4.0.2.2 on Windows NT.

It used to work on LO 3.x.

Stephan
Comment 2 ign_christian 2013-05-18 15:11:00 UTC
Could you attach sample file & how to see that problem so others can easily check it?
Comment 3 ign_christian 2013-05-19 04:47:49 UTC
I can't reproduce that problem using LO 4.0.3.3 (Win7 32bit). Please we need more detailed info.
Comment 4 Rolf Eder 2013-06-25 09:20:40 UTC
Created attachment 81398 [details]
sample document

document is locked completely in 4.x although there is one unprotected cell and the user is allowed to select unprotected cells
Comment 5 Rolf Eder 2013-06-25 09:22:13 UTC
Created attachment 81399 [details]
cell format

protection is off for A1
Comment 6 Rolf Eder 2013-06-25 09:23:08 UTC
Created attachment 81400 [details]
protect sheet

user should be able to select unprotected cells only
Comment 7 Rolf Eder 2013-06-25 09:25:47 UTC
Same here. Sample document attached in comment #4. Password is empty.

I also attached two screenshots (comment #5 and 6) to illustrate the way to reproduce.

It worked for us up to 3.6.5 (did not check later 3.6.x versions) and was broken in 4.x (checked with 4.0.3, 4.0.4 an 4.1.0 beta 2).

This behavior can be reproduced in Mac OS X 10.8, Windows 7 and Server 2008 R2.
Comment 8 ign_christian 2013-06-25 12:46:43 UTC
> Created attachment 81398 [details]
> sample document
> 
> document is locked completely in 4.x although there is one unprotected cell
> and the user is allowed to select unprotected cells

I can select & modify cell A1 on that file (using LO 4.0.4.2 & Win7 32bit). Did I misunderstand? If yes, please provide step by step procedure to demonstrate that problem.

Have you tried resetting user profile?
Comment 9 Rolf Eder 2013-06-25 16:02:19 UTC
Sorry, my sample document was too simple. You are right, it works as expected.

I will upload a new example that will demonstrate a locked (not selectable) but unprotected cell in a protected sheet. In fact there are more parameters active - e. g. the cells have conditional formatting:

1) marking the status protected/unprotected (for usability reasons: only the cells with no background fill are selectable).

2) in cells with content "0" the zero will be colored white (making it invisible, further enhancing readability).

Remove conditional formatting #2 and everything is fine. You can select the cells with content "0" and enter other values.

This example is an excerpt from a real life file. We have dozen other files of that kind need every day that prevent us rolling out LibO 4.x.

This kind of formatting originates from MS Excel files (no problem there), but were saved in OpenDocument format long ago (sometime during the OOo 2.x days). You can select the zeroed cells in LibO 3.6.x and before but not in 4.x
Comment 10 Rolf Eder 2013-06-25 16:06:33 UTC
Created attachment 81416 [details]
sample file #2

More complex example. C13 an C17 are unprotected cells in a protected sheet. They are not selectable.

Empty password.
Comment 11 ign_christian 2013-06-26 03:13:28 UTC
Hi Rolf,

After some testing & searching, I found the fact:
1. Check style "weiße schrift" (applied on conditional format #2) by hitting F11, right-click, then Modify. 
2. Select tab 'Cell Protection', see that 'Protected' checked. 
So the behavior you've been explained is work as expected. Style used on Conditional Formatting will override existing format of cell(s) where that Conditional Formatting applied. (see Bug 51636)
 
Tested on LO 4.0.4.2 (Win7 32bit)

Set status UNCONFIRMED -> maybe I'm wrong, let ask the experts
Comment 12 Rolf Eder 2013-06-26 06:41:03 UTC
You are right.

Sorry that I hijacked this thread. Obviously LibO 4.x takes conditional formatting more thorough than earlier versions - which is not a bug :-) Thanks for "debugging" this. I corrected the formatting in our files and this will help rolling out 50+ installations of LibO 4 in our company.

Maybe the initial reporter has a different setting causing his problem?
Comment 13 ign_christian 2013-06-26 09:01:26 UTC
> Thanks for "debugging" this. I corrected the formatting in our files and
> this will help rolling out 50+ installations of LibO 4 in our company.
So we wish you success :)

> Maybe the initial reporter has a different setting causing his problem?
@Batayub/Stephan, perhaps you had different issue? If not I would suggest to mark this RESOLVED NOTABUG.
Comment 14 s.p.helma 2013-06-27 12:52:36 UTC
I just checked with LO 4.0.4.2 and it seems to work as expected. So from my point of view there is no reason not to close this bug. Thanks for looking into it!

Stephan
Comment 15 ign_christian 2013-06-28 07:12:12 UTC
I think 3 resolved confirmations is enough :)
WORKSFORME seems more appropriate
Comment 16 batayub 2013-06-28 14:20:22 UTC
This is working fine since release 4.0.3.3
Thanks!