[ooo-build] Sheet protection compatibility
Kohei Yoshida
kyoshida at novell.com
Fri Sep 11 16:41:34 PDT 2009
On Wed, 2009-09-09 at 13:58 +0400, Rail Aliev wrote:
> Hi,
>
> Does anybody has problems with unprotecting sheets and document
> (Tools - Protect Document…) in ODS files produced by OOo prior to 3.1.1?
> Calc doesn't accept old passwords in my case…
>
> After temporary disabling calc-ods-sheet-protection-*.diff patches I can
> open unprotect the old documents.
Ok. I looked into it and fixed it in the ooo-build-3-1-1 branch as well
as on master.
The problem was that documents created by the older versions of Go-OO as
well as the upstream OOo did not always specify password hash. So I was
not applying any hash to the password text before verifying it, when in
fact I was supposed to use SHA1 hash when no hash algorithm was
specified.
Anyway, feel free to grab the latest from the ooo-build-3-1-1 branch and
give it a try.
Kohei
--
Kohei Yoshida - OpenOffice.org Engineer - Novell, Inc.
<kyoshida at novell.com>
More information about the ooo-build
mailing list