Issue 113899 - unopkg: shared ScriptingFramework Extension can be uninstalled for single users
Summary: unopkg: shared ScriptingFramework Extension can be uninstalled for single users
Status: ACCEPTED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: OOO330m4
Hardware: Unknown All
: P4 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-15 14:12 UTC by Oliver Brinzing
Modified: 2013-08-07 15:31 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Oliver Brinzing 2010-08-15 14:12:35 UTC
steps to reproduce:

- user "ADMIN" installs shared extension "ScriptDispatch.oxt" from:
  http://www.openoffice.org/issues/show_bug.cgi?id=98990

  C:\Programme\OOo-dev 3\program>unopkg add c:\ScriptDispatch.oxt 
    --shared --verbose
  [...]
  [Enter "yes" or "no"]:yes
   Copying: ScriptDispatch.oxt
    Enabling: ScriptDispatch.oxt
    Enabling: ScriptDispatch
  unopkg done.

- start oo
- check with "StartScriptdispatch.odt" from 
  http://www.openoffice.org/issues/show_bug.cgi?id=98990
- close oo

- change to user "USER" (a user without admin privileges)
- start oo
- check with "StartScriptdispatch.odt"
- close oo
- uninstall extension:
  C:\Programme\OOo-dev 3\program>unopkg remove 
   org.test.java.scriptdispatch --shared --verbose
   Disabling: ScriptDispatch.oxt
   Disabling: ScriptDispatch
  unopkg done.

  btw: User "USER" can not uninstall via "Tools - Extension Manager...",
          cause "Remove" button is disabled ...
  
- user "USER"'s "shared-extension-desc.xml" will now look like:

  <?xml version="1.0" encoding="UTF-8"?>
  <unopackages xmlns:unopackages="unopackages.dtd">
     <language value="Java"/>
  </unopackages>

  but the extension is not removed from:
  C:\Programme\OOo-dev 3\share\uno_packages\cache
 
- user "ADMIN" can still use the shared extension while user "USER" can not.

- if user "USER" tries to reinstall the extension he will fail:
  ERROR: You need write permissions to install a shared extension!
       Cause: void
  unopkg failed.

is this behaviour intended ?

imho the root cause for the problem is, that the "shared-extension-desc.xml"
is located inside the user directory "3\user\Scripts\". the content is redundant.

In OO 3.2 the file was in:
"C:\Program Files\OpenOffice.org\Basis\share\Scripts\unopkg-desc.xml"
and so changing the file failed without write permissions.
Comment 1 Olaf Felka 2010-08-16 06:55:05 UTC
@ jl: Please have a look.
Comment 2 joachim.lingner 2010-08-23 08:49:06 UTC
The file must remain in the user installation, but  "unopkg remove" must fail
for the user.
Accepted. 
Comment 3 joachim.lingner 2010-08-23 08:51:08 UTC
.
Comment 4 joachim.lingner 2011-02-16 14:48:09 UTC
Retargeted to 3.x.