Issue 84332 - Digital signature for macros removed if document is changed
Summary: Digital signature for macros removed if document is changed
Status: CLOSED IRREPRODUCIBLE
Alias: None
Product: General
Classification: Code
Component: www (show other issues)
Version: OOo 2.3.0 RC1
Hardware: PC All
: P3 Trivial with 1 vote (vote)
Target Milestone: ---
Assignee: mikhail.voytenko
QA Contact: issues@framework
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2007-12-07 06:53 UTC by dcarter_za
Modified: 2017-05-20 10:01 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description dcarter_za 2007-12-07 06:53:20 UTC
If macros in a document are digitally signed and the document is subsequently
edited and saved, the digital signature gets removed. This is in contravention
of the specs.
Comment 1 Mathias_Bauer 2007-12-07 07:27:00 UTC
Mikhail, is this something for you or should we pass this on to Andreas Bregas?
In case it's one for you: what about the target - 2.4 or 3.0? 
This bug makes macro signature pretty painful to use, but OTOH I don't want to
rush a fix as this is a security related area.
Comment 2 mikhail.voytenko 2007-12-07 08:16:26 UTC
It looks like I should start the investigation. If I am not wrong I have already
fixed such a problem at the beginning of the macro-signature history. So the
functionality seems to be broken now. I would set 2.4 for the beginning.
Comment 3 kpalagin 2008-01-09 15:03:43 UTC
Code freeze is coming in a week.
Please see if it is still possible to fix the problem for 2.4.

Thanks.
Comment 4 mikhail.voytenko 2008-01-11 15:01:08 UTC
The problem is that in case there is no dialog in the document, the modified
state of the dialog library is true, although no new dialog was inserted. It
looks like the insertion of the default "Standard" library could affect the
behavior.

I leave the bug without target till Monday, but the chances are quite small that
the fix will get it in OOo2.4. 
Comment 5 kpalagin 2008-01-14 07:37:08 UTC
Reportedly version 2.1 did not behave this way - it retained macro signature 
even if document has changed.
Comment 6 andrjuha 2008-01-14 14:53:48 UTC
Confirm, in 2.1 - no problem.
Comment 7 Mathias_Bauer 2010-05-17 14:02:45 UTC
I forgot about this one. 
@jsk: according to the "latest" ;-) comments, this issue might be fixed already.
Can you please test with a current version?
Comment 8 mikhail.voytenko 2010-05-17 14:13:57 UTC
hi has already tested a similar scenario for OOo3.2, so I add him in CC.
Comment 9 v1ce 2011-01-17 13:17:54 UTC
I could confirm that the issue seems resolved for version 3.2.1 .
But signatures of the macros get removed if set on a templete.

When you open a template with a signed macro and save it as a document, the
signatures of the macros get removed.

Tested for BASIC macros and version 3.2.1 under Ubuntu.

Do I need to open a new issue?

Thanks in advance.
Comment 10 Mathias_Bauer 2011-02-09 12:02:38 UTC
Mikhail, please have a look at the latest information.
@v1ce: thank you very much for the confirmation and the new findings!
Comment 11 mikhail.voytenko 2011-02-09 14:31:53 UTC
The scenario does not work as expected at least in DEV300_m96 on Solaris. So the
bug is still or again there.

The problem with template is covered with issue i76318.
Comment 12 mikhail.voytenko 2011-04-04 12:06:12 UTC
Sorry, the last comment from me is not quite correct. The macro-signature was removed there, but only because I have taken ODF1.1 document and have stored it in ODF1.2, that is actually an expected behavior.

If I take ODF1.2 document with signed macro, change it and save in ODF1.2 format the macro-signature is not removed.

@hi: Could you please verify the issue.
Comment 13 h.ilter 2011-04-18 11:19:30 UTC
@MAV: Verified with dev300m106: The macro signature remains after document is changed, even when you save with another file name.

But take a look to the comment:
-  Comment #9 From  v1ce   2011-01-17 13:17:54   
the behavior with templates