Closed
Bug 482636
Opened 15 years ago
Closed 15 years ago
/usr/lib/sunbird Directory Requires World-writable Permissions on first startup
Categories
(Calendar :: Sunbird Only, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
1.0b1
People
(Reporter: crypticmauler, Assigned: ssitter)
References
Details
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b4pre) Gecko/20090308 Firefox/3.1b4pre Build Identifier: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.1b4pre) Gecko/20090310 Calendar/1.0pre After I update the /usr/lib/sunbird directory and set permissions so it is NOT world writable Sunbird errors on load. Reproducible: Always Steps to Reproduce: 1. Update /usr/lib/sunbird directory with latest nightly 2. Set Permissions So World Read/Execute, but NOT Write 3. Open Sunbird Actual Results: Sunbird will error with the following message, which I have to click through multiple times: "Calendar could not install this item because of a failure in Chrome Registration, Please contract the author about this problem." Expected Results: Sunbird should open up without any error. If I change the permissions so it IS world writable Sunbird opens fine, then I change permissions back so it is NOT world writable and no error appears. Seems it only needs world writable permissions on FIRST use. This issue occurs even when all extensions are disabled.
Assignee | ||
Comment 1•15 years ago
|
||
Do you update sunbird by just copying the new content to /usr/lib/sunbird or by replacing it? The latter is recommended. Could you compare the content of the sunbird program folder before and after the first use? What files were changed, added or removed? Looking at other bugs with the same error message this might be related to extension upgrade. Sunbird ships with some built-in extensions, e.g. timezone database, lightning stub, default theme. Does extensions.log in your profile folder shows any related message after the failure?
Component: General → Sunbird Only
QA Contact: general → sunbird
Reporter | ||
Comment 2•15 years ago
|
||
I update by completely deleting contents of /usr/lib/sunbird then extracting the nightly there. The only file/dir I can see being modified is the creation of /usr/lib/sunbird/updates & /usr/lib/sunbird/updates/0 extensions.log (when is is NOT world writable) 009-03-11 08:09:45 - DirectoryInstallLocation: failed to create location directory = /usr/share/mozilla/extensions/{718e30fb-e89b-41dd-9da7-e25a45638b28}, exception = [Exception... "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsILocalFile.create]" nsresult: "0x80520015 (NS_ERROR_FILE_ACCESS_DENIED)" location: "JS frame :: file:///usr/lib/sunbird/components/nsExtensionManager.js :: DirectoryInstallLocation :: line 1108" data: no] 2009-03-11 08:09:45 - DirectoryInstallLocation: failed to create location directory = /usr/lib/mozilla/extensions/{718e30fb-e89b-41dd-9da7-e25a45638b28}, exception = [Exception... "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsILocalFile.create]" nsresult: "0x80520015 (NS_ERROR_FILE_ACCESS_DENIED)" location: "JS frame :: file:///usr/lib/sunbird/components/nsExtensionManager.js :: DirectoryInstallLocation :: line 1108" data: no] 2009-03-11 08:09:45 - safeInstallOperation: failed to back up file: /usr/lib/sunbird/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/install.rdf to: /usr/lib/sunbird/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}-trash ... rolling back file moves and aborting installation. 2009-03-11 08:09:45 - _finalizeUninstall: failed to remove directory for item: {e2fda1a4-762b-4020-b5ad-a41df1933103} at Install Location: app-global, rolling back uninstall 2009-03-11 08:09:45 - DirectoryInstallLocation: failed to create location directory = /usr/share/mozilla/extensions/{718e30fb-e89b-41dd-9da7-e25a45638b28}, exception = [Exception... "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsILocalFile.create]" nsresult: "0x80520015 (NS_ERROR_FILE_ACCESS_DENIED)" location: "JS frame :: file:///usr/lib/sunbird/components/nsExtensionManager.js :: DirectoryInstallLocation :: line 1108" data: no] 2009-03-11 08:09:45 - DirectoryInstallLocation: failed to create location directory = /usr/lib/mozilla/extensions/{718e30fb-e89b-41dd-9da7-e25a45638b28}, exception = [Exception... "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsILocalFile.create]" nsresult: "0x80520015 (NS_ERROR_FILE_ACCESS_DENIED)" location: "JS frame :: file:///usr/lib/sunbird/components/nsExtensionManager.js :: DirectoryInstallLocation :: line 1108" data: no] 2009-03-11 08:09:45 - upgradeExtensionChrome: failed for extension {e2fda1a4-762b-4020-b5ad-a41df1933103} - why not convert to the new chrome.manifest format while you're at it? Failure exception: [Exception... "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsIFile.create]" nsresult: "0x80520015 (NS_ERROR_FILE_ACCESS_DENIED)" location: "JS frame :: file:///usr/lib/sunbird/components/nsExtensionManager.js :: Installer_upgradeExtensionChrome :: line 1698" data: no] 2009-03-11 08:09:47 - upgradeExtensionChrome: failed for extension {e2fda1a4-762b-4020-b5ad-a41df1933103} - why not convert to the new chrome.manifest format while you're at it? Failure exception: [Exception... "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsIFile.create]" nsresult: "0x80520015 (NS_ERROR_FILE_ACCESS_DENIED)" location: "JS frame :: file:///usr/lib/sunbird/components/nsExtensionManager.js :: Installer_upgradeExtensionChrome :: line 1698" data: no] 2009-03-11 08:09:49 - DirectoryInstallLocation: failed to create location directory = /usr/share/mozilla/extensions/{718e30fb-e89b-41dd-9da7-e25a45638b28}, exception = [Exception... "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsILocalFile.create]" nsresult: "0x80520015 (NS_ERROR_FILE_ACCESS_DENIED)" location: "JS frame :: file:///usr/lib/sunbird/components/nsExtensionManager.js :: DirectoryInstallLocation :: line 1108" data: no] 2009-03-11 08:09:49 - DirectoryInstallLocation: failed to create location directory = /usr/lib/mozilla/extensions/{718e30fb-e89b-41dd-9da7-e25a45638b28}, exception = [Exception... "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsILocalFile.create]" nsresult: "0x80520015 (NS_ERROR_FILE_ACCESS_DENIED)" location: "JS frame :: file:///usr/lib/sunbird/components/nsExtensionManager.js :: DirectoryInstallLocation :: line 1108" data: no] 2009-03-11 08:09:49 - safeInstallOperation: failed to back up file: /usr/lib/sunbird/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/install.rdf to: /usr/lib/sunbird/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}-trash ... rolling back file moves and aborting installation. 2009-03-11 08:09:49 - _finalizeUninstall: failed to remove directory for item: {e2fda1a4-762b-4020-b5ad-a41df1933103} at Install Location: app-global, rolling back uninstall extensions.log (when it IS world writable) 2009-03-11 08:14:25 - DirectoryInstallLocation: failed to create location directory = /usr/share/mozilla/extensions/{718e30fb-e89b-41dd-9da7-e25a45638b28}, exception = [Exception... "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsILocalFile.create]" nsresult: "0x80520015 (NS_ERROR_FILE_ACCESS_DENIED)" location: "JS frame :: file:///usr/lib/sunbird/components/nsExtensionManager.js :: DirectoryInstallLocation :: line 1108" data: no] 2009-03-11 08:14:25 - DirectoryInstallLocation: failed to create location directory = /usr/lib/mozilla/extensions/{718e30fb-e89b-41dd-9da7-e25a45638b28}, exception = [Exception... "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsILocalFile.create]" nsresult: "0x80520015 (NS_ERROR_FILE_ACCESS_DENIED)" location: "JS frame :: file:///usr/lib/sunbird/components/nsExtensionManager.js :: DirectoryInstallLocation :: line 1108" data: no] 2009-03-11 08:14:25 - DirectoryInstallLocation: failed to create location directory = /usr/share/mozilla/extensions/{718e30fb-e89b-41dd-9da7-e25a45638b28}, exception = [Exception... "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsILocalFile.create]" nsresult: "0x80520015 (NS_ERROR_FILE_ACCESS_DENIED)" location: "JS frame :: file:///usr/lib/sunbird/components/nsExtensionManager.js :: DirectoryInstallLocation :: line 1108" data: no] 2009-03-11 08:14:25 - DirectoryInstallLocation: failed to create location directory = /usr/lib/mozilla/extensions/{718e30fb-e89b-41dd-9da7-e25a45638b28}, exception = [Exception... "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsILocalFile.create]" nsresult: "0x80520015 (NS_ERROR_FILE_ACCESS_DENIED)" location: "JS frame :: file:///usr/lib/sunbird/components/nsExtensionManager.js :: DirectoryInstallLocation :: line 1108" data: no]
Assignee | ||
Updated•15 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: /usr/lib/sunbird Directory Requires World-writable Permissions → /usr/lib/sunbird Directory Requires World-writable Permissions on first startup
Reporter | ||
Updated•15 years ago
|
Hardware: x86 → x86_64
Version: unspecified → Trunk
Assignee | ||
Comment 3•15 years ago
|
||
Reporter, I'd like you to retest with the 20090316 or newer build. The checkin for Bug 482864 ought to fix the issue.
Reporter | ||
Comment 4•15 years ago
|
||
Issue has been fixed, Sunbird no longer error when dir is not world-writable. Thanks, and great job!
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Updated•15 years ago
|
Assignee: nobody → ssitter
Target Milestone: --- → 1.0
Comment 5•13 years ago
|
||
These bugs are likely targeted at Lightning 1.0b1, not Lightning 1.0. If this change was done in error, please adjust the target milestone to its correct value. To filter on this bugspam, you can use "lightning-10-target-move".
Target Milestone: 1.0 → 1.0b1
You need to log in
before you can comment on or make changes to this bug.
Description
•