You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2015/09/28 16:45:50 UTC

[Issue 125431] "The Password is incorrect. The file cannot be opened."

https://bz.apache.org/ooo/show_bug.cgi?id=125431

damjan@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |regression
                 CC|                            |damjan@apache.org
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |CONFIRMED

--- Comment #54 from damjan@apache.org ---
Brilliant work Paul. Corruption of ~/.mozilla/firefox/profiles.ini (eg. 
changing Path to an invalid value) reproducibly causes "The password is
incorrect. The file cannot be opened" to appear in AOO 4.1.1 on Ubuntu 14.04
32-bit. Can someone with a Mac on which this problem appears attach their 
~/Library/Application Support/Firefox/Profiles/profiles.ini and/or
~/Library/Mozilla/Firefox/Profiles/profiles.ini?

I closed AOO, corrupted that file, opened Calc, and compared /proc/<pid>/maps
before and after trying (and failing) to open an encrypted Writer document to
see what changed in terms of loaded libraries. Not surprisingly, most of them
were libnss libraries from the Mozilla project (below).

Luckily it should be possible to fix this just by reimplementing small bits of
main/xmlsecurity using another encryption library instead of libnss, or maybe
even just by building AOO without some Mozilla dependencies. I will do some
testing later.

$ diff -u /tmp/before /tmp/after
--- /tmp/before    2015-09-28 16:13:32.598992999 +0200
+++ /tmp/after    2015-09-28 16:14:35.439488250 +0200
@@ -1,6 +1,38 @@
 08048000-0804a000 r-xp 00000000 08:01 546481    
/opt/openoffice4/program/soffice.bin
 0804a000-0804b000 rw-p 00001000 08:01 546481    
/opt/openoffice4/program/soffice.bin
-08bf2000-090c8000 rw-p 00000000 00:00 0          [heap]
+08bf2000-090f9000 rw-p 00000000 00:00 0          [heap]
+a7e2d000-a804d000 rw-p 00000000 00:00 0 
+a804d000-a80a8000 r-xp 00000000 08:01 526284    
/opt/openoffice4/program/libnssckbi.so
+a80a8000-a80b8000 rw-p 0005a000 08:01 526284    
/opt/openoffice4/program/libnssckbi.so
+a80b8000-a8104000 r-xp 00000000 08:01 546505    
/opt/openoffice4/program/libfreebl3.so
+a8104000-a8105000 rw-p 0004c000 08:01 546505    
/opt/openoffice4/program/libfreebl3.so
+a8105000-a8109000 rw-p 00000000 00:00 0 
+a8109000-a8128000 r-xp 00000000 08:01 546507    
/opt/openoffice4/program/libnssdbm3.so
+a8128000-a8129000 rw-p 0001e000 08:01 546507    
/opt/openoffice4/program/libnssdbm3.so
+a8129000-a819c000 r-xp 00000000 08:01 526341    
/opt/openoffice4/program/libsqlite3.so
+a819c000-a819e000 rw-p 00073000 08:01 526341    
/opt/openoffice4/program/libsqlite3.so
+a819e000-a81d1000 r-xp 00000000 08:01 546510    
/opt/openoffice4/program/libsoftokn3.so
+a81d1000-a81d2000 rw-p 00033000 08:01 546510    
/opt/openoffice4/program/libsoftokn3.so
+a81d2000-a81dc000 r-xp 00000000 08:01 526543    
/opt/openoffice4/program/mozbootstrap.uno.so
+a81dc000-a81dd000 rw-p 00009000 08:01 526543    
/opt/openoffice4/program/mozbootstrap.uno.so
+a81dd000-a81df000 r-xp 00000000 08:01 526350    
/opt/openoffice4/program/libplds4.so
+a81df000-a81e0000 rw-p 00001000 08:01 526350    
/opt/openoffice4/program/libplds4.so
+a81e0000-a81fc000 r-xp 00000000 08:01 546515    
/opt/openoffice4/program/libnssutil3.so
+a81fc000-a81ff000 rw-p 0001c000 08:01 546515    
/opt/openoffice4/program/libnssutil3.so
+a81ff000-a8200000 rw-p 00000000 00:00 0 
+a8200000-a822f000 r-xp 00000000 08:01 546506    
/opt/openoffice4/program/libnspr4.so
+a822f000-a8230000 rw-p 0002f000 08:01 546506    
/opt/openoffice4/program/libnspr4.so
+a8230000-a8232000 rw-p 00000000 00:00 0 
+a8232000-a833b000 r-xp 00000000 08:01 546514    
/opt/openoffice4/program/libnss3.so
+a833b000-a8340000 rw-p 00108000 08:01 546514    
/opt/openoffice4/program/libnss3.so
+a8340000-a83ee000 r-xp 00000000 08:01 526555    
/opt/openoffice4/program/libxsec_xmlsec.so
+a83ee000-a83f4000 rw-p 000ae000 08:01 526555    
/opt/openoffice4/program/libxsec_xmlsec.so
+a83f4000-a8424000 rw-p 00000000 00:00 0 
+a8424000-a8e0b000 r-xp 00000000 08:01 526472    
/opt/openoffice4/program/libsw.so
+a8e0b000-a8e85000 rw-p 009e7000 08:01 526472    
/opt/openoffice4/program/libsw.so
+a8e85000-a8e89000 rw-p 00000000 00:00 0 
+a8e89000-a8e94000 r-xp 00000000 08:01 528606    
/opt/openoffice4/program/libswd.so
+a8e94000-a8e95000 rw-p 0000b000 08:01 528606    
/opt/openoffice4/program/libswd.so
 a8e95000-a8ea3000 r-xp 00000000 08:01 526593    
/opt/openoffice4/program/updatefeed.uno.so
 a8ea3000-a8ea4000 rw-p 0000d000 08:01 526593    
/opt/openoffice4/program/updatefeed.uno.so
 a8ea4000-a8eca000 r--s 00000000 08:01 2096      
/usr/share/fonts/truetype/liberation/LiberationSerif-Regular.ttf
@@ -128,9 +160,11 @@
 acb6c000-acb6d000 rw-p 0006b000 08:01 1835366   
/usr/lib/i386-linux-gnu/libcups.so.2
 acb6d000-acd6d000 rw-s 00000000 00:04 6651928    /SYSV00000000 (deleted)
 acd6d000-acd6e000 ---p 00000000 00:00 0 
-acd6e000-ad56e000 rw-p 00000000 00:00 0 
+acd6e000-ad56e000 rw-p 00000000 00:00 0          [stack:9190]
 ad56e000-ad5a0000 r-xp 00000000 08:01 526568    
/opt/openoffice4/program/libcurl.so.4
 ad5a0000-ad5a1000 rw-p 00032000 08:01 526568    
/opt/openoffice4/program/libcurl.so.4
+ad5a1000-ad5a4000 r-xp 00000000 08:01 526276    
/opt/openoffice4/program/libplc4.so
+ad5a4000-ad5a5000 rw-p 00002000 08:01 526276    
/opt/openoffice4/program/libplc4.so
 ad5a5000-ad5ae000 r-xp 00000000 08:01 526270    
/opt/openoffice4/program/libscd.so
 ad5ae000-ad5af000 rw-p 00009000 08:01 526270    
/opt/openoffice4/program/libscd.so
 ad5af000-ad5bd000 r-xp 00000000 08:01 526607    
/opt/openoffice4/program/libfileacc.so

-- 
You are receiving this mail because:
You are the assignee for the issue.