[Libreoffice-bugs] [Bug 114708] New: Error installing extension with a space in the filename
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Wed Dec 27 04:30:26 UTC 2017
https://bugs.documentfoundation.org/show_bug.cgi?id=114708
Bug ID: 114708
Summary: Error installing extension with a space in the
filename
Product: LibreOffice
Version: 5.3.5.2 release
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Extensions
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: mark at walkjivefly.com
Description:
If you attempt to install an extension with a space in the filename LibreOffice
throws an error like this:
(com.sun.star.uno.RuntimeException) { { Message = "<class 'FileNotFoundError'>:
[Errno 2] No such file or directory:
'/home/mark/.config/libreoffice/4/user/uno_packages/cache/uno_packages/lu25024oiu60e.tmp_/LOC%20(1).oxt/loc.py',
traceback follows\X000a /usr/lib/libreoffice/program/pythonloader.py:94 in
function getModuleFromUrl() [fileHandle = open( filename, encoding='utf_8'
)]\X000a /usr/lib/libreoffice/program/pythonloader.py:149 in function
writeRegistryInfo() [mod = self.getModuleFromUrl( locationUrl )]\X000a\X000a",
Context = (com.sun.star.uno.XInterface) @0 } }
The space in the filename is introduced by the user's browser when downloading
an ectension and a previous version still exists in the download location. The
workaround is to remove previous versions before downloading a new extension or
to manually rename the file after downloading. The bracketed number is not a
problem; it is specifically the space in the name which causes LibreOffice a
problem.
The extension partially fails to install. It does not show up in the list of
installed extensions but if you attempt to install an extension with the same
version number it will say the extension is already installed and ask whether
to replace it.
Steps to Reproduce:
1. Download any extension. Download it again (resulting in a name like "LOC
(1).ext"
2. Try to install it.
3. LibreOffice throws an error.
Actual Results:
Extension is partially installed. It doesn't appear in the list of installed
extensions and cannot be used, but attempting to install a well-named extension
with the same version number says the extension is already installed.
Expected Results:
Handle a filename with embedded spaces gracefully.
Reproducible: Always
User Profile Reset: Yes
Additional Info:
Either make it work, or explain it will not work and do not leave the extension
in an inconsistent state.
Version: 5.1.6.2
Build ID: 1:5.1.6~rc2-0ubuntu1~xenial2
CPU Threads: 2; OS Version: Linux 4.10; UI Render: default;
Locale: en-GB (en_GB.UTF-8); Calc: group
and
Version: 5.3.5.2
Build ID: 50d9bf2b0a79cdb85a3814b592608037a682059d
CPU threads: 4; OS: Linux (misparsed version); UI render: default; VCL: kde4;
Layout Engine: new;
Locale: en-GB (en_GB.UTF-8); Calc: group
User-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like
Gecko) Chrome/46.0.2490.71 Safari/537.36
--
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/20171227/4b1e5b20/attachment.html>
More information about the Libreoffice-bugs
mailing list