To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=116290
                 Issue #|116290
                 Summary|Signed ODT: invalid ODT files
               Component|framework
                 Version|OOO330m18
                Platform|All
                     URL|
              OS/Version|All
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|code
             Assigned to|jl
             Reported by|pjanik





------- Additional comments from pja...@openoffice.org Mon Jan  3 17:07:56 
+0000 2011 -------
Hi,

ODT 1.2 specs says, that ODT files SHALL contain mimetype file as the first 
file in the ODT file. Plain 
ODT file thus contain:

Macintosh:~/Desktop pavel$ hexdump -C qqq1.odt |head -5
00000000  50 4b 03 04 14 00 00 08  00 00 a6 78 23 3e 5e c6  |PK.........x#>^.|
00000010  32 0c 27 00 00 00 27 00  00 00 08 00 00 00 6d 69  |2.'...'.......mi|
00000020  6d 65 74 79 70 65 61 70  70 6c 69 63 61 74 69 6f  |metypeapplicatio|
00000030  6e 2f 76 6e 64 2e 6f 61  73 69 73 2e 6f 70 65 6e  |n/vnd.oasis.open|
00000040  64 6f 63 75 6d 65 6e 74  2e 74 65 78 74 50 4b 03  |document.textPK.|

When I sign the document, the structure of the file changes and mimetype is not 
the first file, thus 
violating the ODT file specification:

Macintosh:~/Desktop pavel$ hexdump -C qqq.odt |head -5
00000000  50 4b 03 04 14 00 00 08  00 00 8b 78 23 3e 00 00  |PK.........x#>..|
00000010  00 00 00 00 00 00 00 00  00 00 1a 00 00 00 43 6f  |..............Co|
00000020  6e 66 69 67 75 72 61 74  69 6f 6e 73 32 2f 73 74  |nfigurations2/st|
00000030  61 74 75 73 62 61 72 2f  50 4b 03 04 14 00 00 08  |atusbar/PK......|
00000040  08 00 73 78 23 3e 00 00  00 00 02 00 00 00 00 00  |..sx#>..........|
Macintosh:~/Desktop pavel$ 

In the addition, we SHOULD NOT open such files, as these files are not ODT 
compliant. We do so though.

---------------------------------------------------------------------
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: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


---------------------------------------------------------------------
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org

Reply via email to