<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Throws exception when removing .zip file extension via extension manager"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=126864">126864</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Throws exception when removing .zip file extension via extension manager
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.2.0.3 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86 (IA32)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Extensions
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>adrianjgrady@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>