[Libreoffice-bugs] [Bug 116351] New: Encryption with two or more keys causes General input/ output error

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Mar 11 19:47:53 UTC 2018


https://bugs.documentfoundation.org/show_bug.cgi?id=116351

            Bug ID: 116351
           Summary: Encryption with two or more keys causes General
                    input/output error
           Product: LibreOffice
           Version: 6.1.0.0.alpha0+ Master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: himajin100000 at gmail.com

Description:
see steps to reproduce

Steps to Reproduce:
1. Create two sets of OpenPGP key pairs ,both for encryption. ( I call them as
e1 at example.com and e2 at example.com)
2. Run Writer
3. File->Save As
4. Check "Encrypt with GPG keys"
5. Save As "Untitled 1.odt"
6. A dialog with "Select Certificate" as its title appears.
7. Hold Ctrl Key and Select e1 at example.com and e2 at example.com
8. Click Encrypt

Actual Results:  
A dialog appers. The message there is

Error saving the document Untitled 1:
General Error.
General input/output error.

here you cannot save this file even without GPG keys

Expected Results:
No Error


Reproducible: Always


User Profile Reset: No



Additional Info:
https://opengrok.libreoffice.org/xref/core/package/source/manifest/ManifestExport.cxx?r=ddd43218#235
xNewAttrList declared here is not cleared anywhere.

so if you have two or more keys,
https://opengrok.libreoffice.org/xref/core/package/source/manifest/ManifestExport.cxx?r=ddd43218#272
https://opengrok.libreoffice.org/xref/core/package/source/manifest/ManifestImport.cxx?r=ddd43218#69
https://opengrok.libreoffice.org/xref/core/package/source/manifest/ManifestDefines.hxx?r=3f775118#46

it would mean there would be two loext:PGPAlgorithm for the same element. Of
course this is wrong.

if you have enabled dbgutil when you configure before you make your own build,
you can be more sure of that, as you will see an assertion error.
https://opengrok.libreoffice.org/xref/core/sax/source/expatwrap/saxwriter.cxx?r=0a1d5af2#626

there seems no clear() method thing-y for xml::sax::XAttributeList, I will just
remove these declarations and declare them in for-loop that begins at

https://opengrok.libreoffice.org/xref/core/package/source/manifest/ManifestExport.cxx?r=ddd43218#249

in the patch I will submit.


User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101
Firefox/60.0

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20180311/16d4ccd2/attachment.html>


More information about the Libreoffice-bugs mailing list