To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=93477
Issue #|93477
Summary|Section Protection: Password set by section.setPropert
|yValue("ProtectionKey", lstrpwd.getBytes() is impossib
|le to unprotect in GUI
Component|api
Version|OOo 2.4.1
Platform|Opteron/x86_64
URL|
OS/Version|Linux
Status|UNCONFIRMED
Status whiteboard|
Keywords|
Resolution|
Issue type|DEFECT
Priority|P3
Subcomponent|code
Assigned to|jsc
Reported by|pullkick
------- Additional comments from [EMAIL PROTECTED] Thu Sep 4 10:22:05 +0000
2008 -------
If I set a protection password of a section using the code below, a protection
password is successfully applied, but if I enter the SAME password in the GUI of
OOO to unprotect the section it tells me invalid password!
If I look into content.xml the password of "AAAAA" is encoded to this
text:protection-key="QUFBQUE="
If I enter the same password into the gui to protect a section I end up with
this in content.xml:
text:protection-key="ScaldiHZA5Q9W7EMzomj1YIeOY8="
It looks as if there is wholly different hashing algorithm applied!
What's wrong there?
Code used to reproduce:
XTextSectionsSupplier lXTextSectionsSupplier = (XTextSectionsSupplier)
UnoRuntime
.queryInterface(XTextSectionsSupplier.class, mXModel);
XNameAccess lXNameAccessTextSections = lXTextSectionsSupplier
.getTextSections();
XPropertySet lXPropertySetSection = (XPropertySet) UnoRuntime
.queryInterface(XPropertySet.class,
lXNameAccessTextSections
.getByName("AnExistingSection"));
lXPropertySetSection.setPropertyValue("IsProtected", true);
String lstringProtectionPassword = "AAAAA";
lXPropertySetSection.setPropertyValue("ProtectionKey",
lstringProtectionPassword.getBytes());
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]