Bug 37771

Summary: Writer requires a password with 93/62244 characters in Insert/Format > Section(s)
Product: LibreOffice Reporter: Gustavo Pacheco <gbpacheco>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED FIXED    
Severity: critical CC: cno, jbfaure, lemoyne.castle
Priority: high    
Version: 3.4.0 release   
Hardware: x86 (IA32)   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: password dialogs

Description Gustavo Pacheco 2011-05-30 17:53:06 UTC
Created attachment 47343 [details]
password dialogs

Windows XP 
LibreOffice 
OOO340m1 (Build:11) 

Open a new text document;
go to Insert > Section...;
click Protection;
click With password;
Writer requires a password with 93 characters. 


Open a document with an unprotected section;
go to Format > Sections;
select the unprotected section;
click Protection;
click With password;
Writer requires a password with 62244 characters.
Comment 1 Rainer Bielefeld Retired 2011-06-10 02:57:56 UTC
RC2 is bit by bit identical with release version, so separate items in the version picker are useless. Changes have been discussed with Michael Meeks.
Comment 2 Cor Nouws 2011-06-14 22:41:21 UTC
LOL :-(
3.4.0 on Ubuntu says I need a password of 96 characters
Comment 3 Cor Nouws 2011-06-15 00:21:58 UTC
Second time during the same session, a length of 32268 is required.

Just saw fdo#36951 in the 2011-20 commit log. Related?
Comment 4 Andras Timar 2011-06-16 09:47:38 UTC
(In reply to comment #3)
> Second time during the same session, a length of 32268 is required.

It's a random garbage from memory, because the variable is not initialised.

> 
> Just saw fdo#36951 in the 2011-20 commit log. Related?

No, not related, that was just a UI misbehaviour. 

I pushed a fix to master for this bug:
http://cgit.freedesktop.org/libreoffice/libs-core/commit/?id=6ab5952f6d952e5f96428b631e91a208ea21d4aa
I tried it and it fixed the issue. If reviewers find it good enough, then it will be in 3.4.1.