Bug 126864 - Throws exception when removing .zip file extension via extension manager
Summary: Throws exception when removing .zip file extension via extension manager
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Extensions (show other bugs)
Version:
(earliest affected)
6.2.0.3 release
Hardware: x86 (IA32) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-13 02:18 UTC by adrianjgrady
Modified: 2020-04-17 03:35 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description adrianjgrady 2019-08-13 02:18:10 UTC
Description:
After loading a .zip file as an extension and then attempting to remove it, LibreOffice will display the standard warning(You are about to remove the extension 'Libo_PlantUML-master.zip'.
Click 'OK' to remove the extension.
Click 'Cancel' to stop removing the extension.)
When "OK" is pressed, it will throw the following exception
(com.sun.star.lang.IllegalArgumentException) { { { Message = "Cannot detect media-type: file:///C:/Users/Play/AppData/Roaming/LibreOffice/4/user/uno_packages/cache/uno_packages/lu16816v9oehy.tmp_/Libo_PlantUML-master.zip", Context = (com.sun.star.uno.XInterface) @23a22b80c70 } }, ArgumentPosition = (short) -1 }
This does not occur when removing valid, non-.zip extensions.

Steps to Reproduce:
1.Load .zip file as extension via extension manager
2.Attempt to remove said .zip file via extension manager
3.Press "OK" on warning to proceed

Actual Results:
Throws the following exception
(com.sun.star.lang.IllegalArgumentException) { { { Message = "Cannot detect media-type: file:///C:/Users/Play/AppData/Roaming/LibreOffice/4/user/uno_packages/cache/uno_packages/lu16816v9oehy.tmp_/Libo_PlantUML-master.zip", Context = (com.sun.star.uno.XInterface) @23a22b80c70 } }, ArgumentPosition = (short) -1 }

Expected Results:
Removes the extension


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Version: 6.2.0.3 (x64)
Build ID: 98c6a8a1c6c7b144ce3cc729e34964b47ce25d62
CPU threads: 4; OS: Windows 10.0; UI render: default; VCL: win; 
Locale: en-US (en_US); UI-Language: en-US
Calc: CL
Comment 1 Xisco Faulí 2019-08-13 11:14:39 UTC
Thank you for reporting the bug.
it seems you're using an old version of LibreOffice.
Could you please try to reproduce it with the latest version of LibreOffice
from https://www.libreoffice.org/download/libreoffice-fresh/ ?
I have set the bug's status to 'NEEDINFO'. Please change it back to
'UNCONFIRMED' if the bug is still present in the latest version.
Comment 2 himajin100000 2019-08-24 19:02:05 UTC
Reproducible

バージョン: 6.3.0.4 (x64)
Build ID: 057fc023c990d676a43019934386b85b21a9ee99
CPU threads: 4; OS:Windows 10.0; UI render: default; VCL: win; 
ロケール: ja-JP (ja_JP); UI-Language: ja-JP
Calc: CL
Comment 3 Xisco Faulí 2019-09-18 11:22:49 UTC
I can't reproduce it in

Version: 6.4.0.0.alpha0+
Build ID: 938d304f0f28962594853a8db1cc574abff8dc49
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US
Calc: threaded

Which are the steps to reproduce it ?
1. Download the extension ( e.g. https://extensions.libreoffice.org/extensions/libo_plantuml/1-2.2 )
2. Change the extension to .zip
3. Install it in LibreOffice
4. Remove it from LibreOffice ?????
Comment 4 himajin100000 2019-09-18 11:27:59 UTC
(In reply to Xisco Faulí from comment #3)
> I can't reproduce it in
> 
> Which are the steps to reproduce it ?
> 1. Download the extension ( e.g.
> https://extensions.libreoffice.org/extensions/libo_plantuml/1-2.2 )

No, "Wrongly" Click the "Clone or download" and use that zip file. 
https://github.com/lodahl/Libo_PlantUML

True, it's not correct way of installation,but if extension manager prevents the zip file from installation from the first place, it would not be confusing.
Comment 5 himajin100000 2019-09-18 11:30:07 UTC
I did not mean to download the Libo_PlantUML.oxt on github. the whole directory including README.md and make.sh
Comment 6 QA Administrators 2020-03-17 02:49:07 UTC Comment hidden (obsolete)
Comment 7 QA Administrators 2020-04-17 03:35:46 UTC
Dear adrianjgrady,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp