Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | [From Symphony] Can't pop up protect password dialog when attempt to unprotect sheet with password for xls file in AOO. | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Calc | Reporter: | binguo <binbjguo> | ||||||
Component: | code | Assignee: | Andre <awf.aoo> | ||||||
Status: | CLOSED FIXED | QA Contact: | |||||||
Severity: | Normal | ||||||||
Priority: | P3 | CC: | awf.aoo, lijianyuan1983, liushenf, polo8495, sunyingshadesun | ||||||
Version: | 3.4.0 Beta (OOo) | ||||||||
Target Milestone: | 4.0.0 | ||||||||
Hardware: | PC | ||||||||
OS: | All | ||||||||
Issue Type: | DEFECT | Latest Confirmation in: | --- | ||||||
Developer Difficulty: | --- | ||||||||
Attachments: |
|
Description
binguo
2012-05-30 05:38:19 UTC
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. |