Closed Bug 284669 Opened 20 years ago Closed 18 years ago

Problem with system-wide extensions installations

Categories

(Toolkit :: Add-ons Manager, defect)

x86
Linux
defect
Not set
critical

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: mozilla_bugzilla, Unassigned)

References

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.7.6) Gecko/20050226 Firefox/1.0.1
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.7.6) Gecko/20050226 Firefox/1.0.1

I tried to install several extensions system-wide

I used the command: 

firefox -install-global-extension name.xpi

Some are stucked in "Installed next time mode"
flashgot-0.5.7.6-fx+mz.xpi
forecastfox-0.7-fx+mz.xpi
foxytunes-1.1-fx+mz+tb.xpi

Their installation gave the message:
*** loading the extensions datasource
*** nsExtensionManager::_finishOperations - failure, catching exception so
finalize window can close [Exception... "Component returned failure code:
0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIZipReader.open]"  nsresult: "0x80520012
(NS_ERROR_FILE_NOT_FOUND)"  location: "JS frame ::
file:///opt/firefox-1.0.1/components/nsExtensionManager.js ::
nsExtensionInstaller__installExtensionFiles :: line 979"  data: no]


Some are NOT installed:
adblock-0.5.2.039-fx.xpi
all-in-one_gestures-0.12.4-fx.xpi
cookieculler-1.1.0-fx.xpi
image_zoom-0.1.7-fx+mz+tb.xpi
location_navigator-0.2.2-fx.xpi
mouse_gestures-1.0-fx+mz+tb.xpi
tabbrowser_preferences-1.1.1-fx.xpi
translate_page-0.1-fx.xpi
web_developer-0.8-fx.xpi

Their installation gave th message:
*** loading the extensions datasource
*** getItemProperty failing for lack of an item. This means getResourceForItem 
               failed to locate a resource for aItemID (item ID =
{34274bf4-1d97-a289-e984-17e546307e4f}, property = internalName)
*** nsExtensionManager::_finishOperations - failure, catching exception so
finalize window can close [Exception... "Component returned failure code:
0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIZipReader.open]"  nsresult: "0x80520012
(NS_ERROR_FILE_NOT_FOUND)"  location: "JS frame ::
file:///opt/firefox-1.0.1/components/nsExtensionManager.js ::
nsExtensionInstaller__installExtensionFiles :: line 979"  data: no]

Furthermore some extension installed their file only readable by root which
prevented any other user to open firefox correctly: firefox get opened but no
menu nor toolbar icon had any effect.




Reproducible: Always

Steps to Reproduce:
(In reply to comment #0)
> Furthermore some extension installed their file only readable by root which
> prevented any other user to open firefox correctly: firefox get opened but no
> menu nor toolbar icon had any effect.
I believe that this specific issue is bug 189905
*** Bug 284492 has been marked as a duplicate of this bug. ***
Matthieu - can you try a recent trunk build? Also, with a new profile what
happens when you install just one extension as root, restart as root, and then
run as your regular user account? The extensions stuck sound like what is
described http://www.mozilla.org/products/firefox/releases/#troubleshooting or a
derivative of it.
(In reply to comment #1)
> I believe that this specific issue is bug 189905

Yes this is.
Thank you

Tested with trunk version Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b2)
Gecko/20050303 Firefox/1.0+

#./firefox -install-global-extension adblock-0.5.2.039-fx.xpi
*** loading the extensions datasource
*** getItemProperty failing for lack of an item. This means getResourceForItem 
               failed to locate a resource for aItemID (item ID =
{34274bf4-1d97-a289-e984-17e546307e4f}, property = internalName)

# ./firefox -install-global-extension forecastfox-0.7-fx+mz.xpi
*** loading the extensions datasource
*** nsExtensionManager::_finishOperations - failure, catching exception so
finalize window can close [Exception... "Component returned failure code:
0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIZipReader.open]"  nsresult: "0x80520012
(NS_ERROR_FILE_NOT_FOUND)"  location: "JS frame ::
file:///opt/firefox-1.0+/components/nsExtensionManager.js ::
nsExtensionInstaller__installExtensionFiles :: line 939"  data: no]

Then any load of firefox displays:
*** loading the extensions datasource
*** nsExtensionManager::_finishOperations - failure, catching exception so
finalize window can close [Exception... "Component returned failure code:
0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIZipReader.open]"  nsresult: "0x80520012
(NS_ERROR_FILE_NOT_FOUND)"  location: "JS frame ::
file:///opt/firefox-1.0+/components/nsExtensionManager.js ::
nsExtensionInstaller__installExtensionFiles :: line 939"  data: no]
*** loading the extensions datasource

and forecastfox is said to be installed next time.

Starting firefow with -safe-mode does not show any error message in the terminal
. The extension is still said to be installed next time.

If I try to uninstall the plugin is marked to be uninstalled but never *really*
uninstall.
Attached file sample extension
Matthieu - I have attached a sample extension from
http://roachfiend.com/archives/2004/12/08/how-to-create-firefox-extensions/
that I have verified has the correct file permissions. Can you save it locally
and try installing just this one extension globally, restart Firefox as root,
then start Firefox as the user, check to se if it works (it adds a menuitem
labeled "Hello, world!" to the context menu and tools menu), and report your
findings. You will need to perform a clean install of Firefox due to the
previous failure to remove the remnants of the previous attempts. This will
hopefully rule out bug 189905. Thanks.
I just noticed you are using relative paths... please try it with full paths as
well.
******************************
Tests with Hello world
******************************

# /opt/firefox-1.0+/firefox -install-global-extension
/opt/firefox-1.0+/helloworld.xpi
*** loading the extensions datasource

Firefox loads correctly and the extension is present and works for root.
Furthermore it uninstalls correctly.

Anyway I still get some permission problems:

# ll {9AA46F4F-4DC7-4c06-97AF-5035170633FE}/*
-rw-r--r--  1 root root  342 mar  5 11:14
{9AA46F4F-4DC7-4c06-97AF-5035170633FE}/chrome.manifest
-r--------  1 root root 3649 aoû 16  2004
{9AA46F4F-4DC7-4c06-97AF-5035170633FE}/install.js
-r--------  1 root root 1200 déc 19 19:43
{9AA46F4F-4DC7-4c06-97AF-5035170633FE}/install.rdf

{9AA46F4F-4DC7-4c06-97AF-5035170633FE}/chrome:
total 12
-r--------  1 root root 10532 déc 19 19:43 helloworld.jar

{9AA46F4F-4DC7-4c06-97AF-5035170633FE}/uninstall:
total 4
-rw-r--r--  1 root root 261 mar  5 11:14 Uninstall


The good news is the normal user just does not see the extension and as a
warning in th terminal but he can use Firefox:

$ /opt/firefox-1.0+/firefox
*** loading the extensions datasource
*** ExtensionManager:_updateManifests: no access privileges to application
directory, skipping.
*** loading the extensions datasource
*** ExtensionManager:_updateManifests: no access privileges to application
directory, skipping.
Version: unspecified → Trunk
***********************
Tests with adblock (NOT INSTALLED EXTENSION)
***********************

# /opt/firefox-1.0+/firefox -install-global-extension
/opt/firefox-1.0+/adblock-0.5.2.039-fx.xpi
*** loading the extensions datasource
*** getItemProperty failing for lack of an item. This means getResourceForItem 
               failed to locate a resource for aItemID (item ID =
{34274bf4-1d97-a289-e984-17e546307e4f}, property = internalName)

The extension is NOT present when I open Firefox

A temp directory appeared in extensions directory:

# ll extensions/temp
total 76
-rw-r--r--  1 root root 72084 mar  5 11:24 temp-61t.xpi
***********************
Tests with forecastfox (WILL BE INSTALLED NEXT TIME)
***********************

# /opt/firefox-1.0+/firefox -install-global-extension
/opt/firefox-1.0+/forecastfox-0.7-fx+mz.xpi
*** loading the extensions datasource

Some files still read-only:

# ll extensions/\{0538E3E3-7E9B-4d49-8831-A227C80A7AD3\}/*
-rw-r--r--  1 root root 1889 mar  5 11:29
extensions/{0538E3E3-7E9B-4d49-8831-A227C80A7AD3}/chrome.manifest
-rw-r--r--  1 root root 3991 fév 19 18:56
extensions/{0538E3E3-7E9B-4d49-8831-A227C80A7AD3}/install.js
-r--------  1 root root 4731 fév 26 12:13
extensions/{0538E3E3-7E9B-4d49-8831-A227C80A7AD3}/install.rdf

extensions/{0538E3E3-7E9B-4d49-8831-A227C80A7AD3}/chrome:
total 700
-r--------  1 root root 710784 fév 26 12:45 forecastfox.jar

extensions/{0538E3E3-7E9B-4d49-8831-A227C80A7AD3}/components:
total 76
-rw-r--r--  1 root root 69456 fév 19 18:56 nsForecastfox.js
-rw-r--r--  1 root root   631 fév 19 18:56 nsForecastfox.xpt

extensions/{0538E3E3-7E9B-4d49-8831-A227C80A7AD3}/defaults:
total 16
-rw-r--r--  1 root root 1998 fév 19 18:56 export.xml
drwxr-xr-x  2 root root 4096 mar  5 11:29 preferences
-rw-r--r--  1 root root 4314 fév 19 18:56 profiles.xml

extensions/{0538E3E3-7E9B-4d49-8831-A227C80A7AD3}/uninstall:
total 4
-rw-r--r--  1 root root 847 mar  5 11:29 Uninstall

But with corrected permissions it works great for any user.

Extension can be uninstalled succesfully.

CONCLUSION:

With full command line this extension works (almost) correctly.
*********************************
For info: more global try with 1.0.1
*********************************

Set tested:
adblock-0.5.2.039-fx.xpi
all-in-one_gestures-0.12.4-fx.xpi
all-in-one_search_button-1.61-fx.xpi
checky-2.5-fx+mz.xpi
cookieculler-1.1.0-fx.xpi
disable_targets_for_downloads-0.8-fx.xpi
download_sort-2.5.0-fx.xpi
downthemall!-0.9.4-fx.xpi
eggon-0.1-fx.xpi
flashgot-0.5.7.6-fx+mz.xpi
forecastfox-0.7-fx+mz.xpi
foxytunes-1.1-fx+mz+tb.xpi
gcache-0.2.1-fx.xpi
googlebar-0.9.0.30-fx.xpi
hbar-0.1-fx.xpi
html_validator_(based_on_tidy\-0.5.2-fx+mz-linux.xpi
image_toolbar-0.5-fx.xpi
image_zoom-0.1.7-fx+mz+tb.xpi
infolister-0.7.5-fx+tb.xpi
launchy-3.5.0-fx+tb.xpi
location_navigator-0.2.2-fx.xpi
mapit!-0.4-fx.xpi
mediaplayerconnectivity-0.2.0-fx.xpi
mouse_gestures-1.0-fx+mz+tb.xpi
named_anchors-0.15-fx+mz.xpi
nextplease-0.6.1-fx.xpi
preferential-0.7-fx+mz+tb.xpi
securepassword_generator-0.5.1-fx+mz.xpi
sessionsaver_.2-0.2.1.025-fx+mz.xpi
show_anchors-1.12-fx.xpi
sort_extensions-1.0-fx.xpi
spoofstick-1.05-fx.xpi
tabbrowser_preferences-1.1.1-fx.xpi
targetalert-0.7.3-fx.xpi
translate-0.6.0.6-fx.xpi
translate_page-0.1-fx.xpi
translation_panel-1.4.12-fx+tb.xpi
view_cookies-1.2-fx.xpi
web_developer-0.8-fx.xpi
xmirror-0.1.1-fx.xpi

After first launch as root:

3 extensions marked to be installed (3 previously, 1 changed):
flashgot-0.5.7.6-fx+mz.xpi
foxytunes-1.1-fx+mz+tb.xpi
tabbrowser_preferences-1.1.1-fx.xpi

8 extensions not installed (9 previously):
adblock-0.5.2.039-fx.xpi
all-in-one_gestures-0.12.4-fx.xpi
cookieculler-1.1.0-fx.xpi
image_zoom-0.1.7-fx+mz+tb.xpi
location_navigator-0.2.2-fx.xpi
mouse_gestures-1.0-fx+mz+tb.xpi
translate_page-0.1-fx.xpi
web_developer-0.8-fx.xpi

After first launch as normal user:
$ /opt/firefox-1.0.1/firefox
*** loading the extensions datasource
*** ExtensionManager:_updateManifests: no access privileges to application
directory, skipping.
*** loading the extensions datasource
*** nsExtensionManager::_finishOperations - failure, catching exception so
finalize window can close [Exception... "Component returned failure code:
0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsIFile.create]"  nsresult:
"0x80520015 (NS_ERROR_FILE_ACCESS_DENIED)"  location: "JS frame ::
file:///opt/firefox-1.0.1/components/nsExtensionManager.js :: getDirInternal ::
line 141"  data: no]
*** Failed to load overlay chrome://translation/content/overlays/firefox.xul
*** Failed to load overlay chrome://translate/content/translate.xul
*** Failed to load overlay chrome://spoofstick/content/spoofstick.xul
*** Failed to load overlay chrome://showanchors/content/showanchors-Overlay.xul
*** Failed to load overlay chrome://nextplease/content/nextpleaseOverlay.xul
*** Failed to load overlay
chrome://mediaplayerconnectivity/content/mediaplayerconnectivity-Overlay.xul
*** Failed to load overlay chrome://imagetoolbar/content/imagetoolbarOverlay.xul
*** Failed to load overlay chrome://tidy/content/browserStatusBar.xul
*** Failed to load overlay chrome://googlebar/content/googlebarOverlay.xul
*** Failed to load overlay chrome://gcache/content/gcacheOverlay.xul
*** Failed to load overlay chrome://forecastfox/content/forecastfox-ff.xul
*** Failed to load overlay chrome://forecastfox/content/forecastfox.xul
*** Failed to load overlay chrome://dta/content/browserOverlay.xul
*** Failed to load overlay chrome://dta/content/menu.xul
*** Failed to load overlay chrome://downsort/content/downsortoverlay.xul
*** Failed to load overlay
chrome://allinonesearch/content/allinonesearch-Overlay.xul


And firefox cannot load

SO changed the permission and it get OK


Last test: full uninstall

34 extensions stays in to be unsinstalled mode and are still present in Firefox:
all-in-one_search_button-1.61-fx.xpi
checky-2.5-fx+mz.xpi
disable_targets_for_downloads-0.8-fx.xpi
download_sort-2.5.0-fx.xpi
downthemall!-0.9.4-fx.xpi
eggon-0.1-fx.xpi
forecastfox-0.7-fx+mz.xpi
gcache-0.2.1-fx.xpi
googlebar-0.9.0.30-fx.xpi
hbar-0.1-fx.xpi
html_validator_\based_on_tidy\-0.5.2-fx+mz-linux.xpi
image_toolbar-0.5-fx.xpi
infolister-0.7.5-fx+tb.xpi
launchy-3.5.0-fx+tb.xpi
mapit!-0.4-fx.xpi
mediaplayerconnectivity-0.2.0-fx.xpi
named_anchors-0.15-fx+mz.xpi
nextplease-0.6.1-fx.xpi
preferential-0.7-fx+mz+tb.xpi
securepassword_generator-0.5.1-fx+mz.xpi
sessionsaver_.2-0.2.1.025-fx+mz.xpi
show_anchors-1.12-fx.xpi
sort_extensions-1.0-fx.xpi
spoofstick-1.05-fx.xpi
targetalert-0.7.3-fx.xpi
translate-0.6.0.6-fx.xpi
translation_panel-1.4.12-fx+tb.xpi
view_cookies-1.2-fx.xpi
xmirror-0.1.1-fx.xpi
flashgot-0.5.7.6-fx+mz.xpi
foxytunes-1.1-fx+mz+tb.xpi
tabbrowser_preferences-1.1.1-fx.xpi

Summary:

Tested extensions: 40
Not installed: 8
Still to be installed: 3
Correctly installed: 29
To be uninstalled: 32
Not uninstalled: 32
Uninstalled: 0
This is all going to change with bug 286034. 
Please recheck this bug against a recent nightly build[1] to verify that the
behavior still exists and post the results here.

Also, please supply a testcase to help others verify this behavior.

Thanks.

[1] ftp://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla1.8/
Tested using a recent nightly on Linux without any problems - reporter, can you
retest with a recent nightly and report your findings?
When I try to download Mozilla extensions (MAC OSX), I always encounter the error message: Software installation is currently disabled. Click Edit Options.... to enable it and try again.  I clicke "Edit Options..." button which is provided, and there is nothing in there to enable software installation.  I've even tried turning everything off and then back on.
(In reply to comments

This is a confirmed bug by me and another. The problem comes from overlays.
Type in "overlay" on file search and it will bring up the main overlay folder and the extensions that are overlayed. By deleting the extensions, I returned to having normal Firefox (without extensions, of course) and then was able to get the regular Firefox page, whereas I could uninstall the extensions fully. You can choose to reinstall the extensions after closing Firefox and bringing it back up, BUT it will reoccur within a couple of days as it is seeded in the registry. "RegSeeker" helped clean it out once by typing in overlay, Firefox, and Mozilla and then beginning COMPLETELY from scratch with Firefox, but a total pain that is and much time spent. I am running 1.0.7 or 1.7, whichever is the newest. so it isn't an update issue, rather a plant to mess up Firefox, probably from the competition. Not sure if it is found throughout the newer Firefox or planted through "Faster Firefox", "Image Zoom","Nuke It","Foxy Tunes", "Session Saver" (Though had it prior to that one, so probably not) or "Flashblock", "Translate" or the dictionary check one. Could,actually, be the skin itself too. Here's some reference stuff:
<?xml version="1.0"?>
<RDF:RDF xmlns:c="http://www.mozilla.org/rdf/chrome#"
         xmlns:NC="http://home.netscape.com/NC-rdf#"
         xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
  <RDF:Seq RDF:about="chrome://global/content/customizeToolbar.xul">
  </RDF:Seq>
</RDF:RDF>
 

AND

<?xml version="1.0"?>
<RDF:RDF xmlns:c="http://www.mozilla.org/rdf/chrome#"
         xmlns:NC="http://home.netscape.com/NC-rdf#"
         xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
  <RDF:Seq RDF:about="chrome://browser/content/browser.xul">
  </RDF:Seq>
  <RDF:Seq RDF:about="chrome://browser/content/pref/pref.xul">
  </RDF:Seq>
  <RDF:Seq RDF:about="chrome://browser/content/preferences/preferences.xul">
  </RDF:Seq>
</RDF:RDF>

Both of these are from the skin under "stylesheets.rdf" 
I don't get all the technical mumbo-jumbo, but am good at finding and working around the junk that stops my fun, so, hopefully, this helps the techs out there to figure out what's up with it and resolve the problem.
+SW->




Matthieu, the current version of Firefox uses a new / different mechanism. Could you verify if this is still an issue with Firefox 1.5?
I did execute as root:

/usr/bin/firefox-1.5/firefox -install-global-extension /home/save/firefox/adblock-0.5.2.056-fx+fl+mz+ns.xpi
/usr/bin/firefox-1.5/firefox -install-global-extension /home/save/firefox/forecastfox-0.8.2.5-fx+mz+ns.xpi
/usr/bin/firefox-1.5/firefox -install-global-extension /home/save/firefox/pdf_download-0.5.1.2-fx.xpi
/usr/bin/firefox-1.5/firefox -install-global-extension /home/save/firefox/tabbrowser_preferences-1.2.8.8-fx.xpi


Afterwards, root has the extensions installed BUT a message (I translate from French) : AN error occured when loading disk I/O component twice at start

Any other user DO NOT see the extensions
With the latest version of Firefox 1.5.0.1 the global installs fails for all extensions.

E.g.

 "C:\Program Files\Mozilla Firefox\firefox.exe" -install-global-extension mood_tap-1.5.1-fx.xpi

I've tried this on multiple machines including a vanilla Windows XP.

With the latest version of Firefox 1.5.0.1 the global installs fails for all extensions.

E.g.

 "C:\Program Files\Mozilla Firefox\firefox.exe" -install-global-extension mood_tap-1.5.1-fx.xpi

I've tried this on multiple machines including a vanilla Windows XP.
With the latest version of Firefox 1.5.0.1 the global installs fails for all extensions.

E.g.

 "C:\Program Files\Mozilla Firefox\firefox.exe" -install-global-extension mood_tap-1.5.1-fx.xpi

I've tried this on multiple machines including a vanilla Windows XP.
(In reply to comment #21)
>  "C:\Program Files\Mozilla Firefox\firefox.exe" -install-global-extension
> mood_tap-1.5.1-fx.xpi
Have you tried using the full path to the xpi?
Assignee: bugs → nobody
QA Contact: bugs → extension.manager
Not sure what is going on in Matthieu's case but this is wfm.
This is wfm on Linux and Windows. Since there has been no response to comment #22 in over 7 months resolving -> wfm.

note: the -install-global-extension method was IMO a stopgap solution in 1.0 and copying the extension's directory into the global install location is the better method for installing global extensions
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: