Apache OpenOffice (AOO) Bugzilla – Issue 119552
[From Symphony] Can't pop up protect password dialog when attempt to unprotect sheet with password for xls file in AOO.
Last modified: 2012-10-10 07:04:45 UTC
Steps: 1. Open the attached sample file in Symphony. 2.Click "Tools->Protect Document->Sheet". Defect: It can't pop up a unprotect sheet dialog.
Created attachment 77764 [details] sample xls file
(In reply to comment #0) > Steps: 1. Open the attached sample file in AOO. 2.Click > "Tools->Protect Document->Sheet". Defect: It can't pop up a unprotect > sheet dialog.
I am investigating this issue.
Root cause: There is a macro ENABLE_SHEET_PROTECTION defined. Its value is 0. So all blocks controlled by it will not be executed. Related blocks: 1. Import/export Sheet/Doc protection password for xls file. 2. Import a protected xls file and show password dlg when unprotect a sheet/doc. 2. Import a ods/xls file and export it as a xls/ods file. Show password retype dlg. Solutions: Due to 1 and 2, password dlg is shown. So here set the macro value as 1.
(In reply to comment #4) > Root cause: There is a macro ENABLE_SHEET_PROTECTION defined. Its value is > 0. So all blocks controlled by it will not be executed. > Related blocks: > 1. Import/export Sheet/Doc protection password for xls file. > 2. Import a protected xls file and show password dlg when unprotect a > sheet/doc. > 2. Import a ods/xls file and export it as a xls/ods file. Show password > retype dlg. > Solutions: Due to 1 and 2, password dlg is shown. So here set the macro password dlg is not shown. > value as 1.
Created attachment 78477 [details] Patch for this issue.
*** Issue 118952 has been marked as a duplicate of this issue. ***
The patch resolved this defect and test pass.
"af" committed SVN revision 1359695 into trunk: #i119552# Fixed sheet protection.
Comment on attachment 78477 [details] Patch for this issue. Reviewed and tested: OK
Also verified that bug 102906 is still fixed (which is one candidate that ENABLE_SHEET_PROTECTION was set to 0).
*** Issue 120134 has been marked as a duplicate of this issue. ***
Verify fixed on revision 1374181.
Close this bug
set Target Milestone to AOO 3.5.0 for PM purpose.