"Change password" button in Property dialog (File -> Properties -> General) is always disabled even when I open an encrypted document.
I failed to clarify the condition where this bug appears. In my environment (Win 7, LO 3.4 rc1, x86-64, Writer/Calc), this problem always occurs. Another user reports that this problem can be seen also on WinXP SP3.
Confirmed. I'll take a look at this.
Unfortunately this is going to be an easy fix. It appears that encryption and password handling has changed dramatically between 3.3 and 3.4 in the OOo code base to avoid storing the raw password data in memory. To make matters worse each file format encryption type uses a different hash algorithm, so when you change the password, we need to generate hashes for all hash types that we support. In 3.3, all we had to do was update the raw password stored in memory. This is a big difference.
This is going to be a long battle, and no guarantee this will make it into 3.4.1.
Code pointer for future investigation (when I resume work on this).
SfxDocumentPage::ImplCheckPasswordState() determines the state of the button, and the password hashes are stored in the property bag in the item set associated with SID_ENCRYPTIONDATA. The old password was stored with SID_PASSWORD.
Is this feature always disabled in LO 3.4.0 in any platform?
If so, I think we should strike out this feature from the 3.4 new feature list.
Can you talk to Cor Nouws about this? That page is "frozen" and its editing right is now in the hands of the marketing folks AFAIK.
Looks like OOo has added the same functionality between 3.3 and 3.4 anyway. I might just remove my addition (since it's not working anymore).
I tried to add Cor in CC, but the email address I have doesn't match the one in bugzilla, apparently.
Ah, I found his email address for bugzilla. Adding Cor in CC.
Re-assigning to Markus.
Ok, I think I got it and with some reorganization it should be possible to include this in 3.4.3 but I need to investigate it a bit further.
Button is already enabled correctly only setting the new password is a bit more tricky.
possible fix sent to the ML for review
dialog has changed its appearance, I use now the password dialog that will be displayed during filesave
has been accepted for 3.4.3