Closed Bug 443919 Opened 17 years ago Closed 17 years ago

Webapps created through Prism bookmarklet fail to install on linux

Categories

(Mozilla Labs :: Prism, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: tonikitoo, Assigned: tonikitoo)

References

Details

Attachments

(1 file)

* Test environment: prism built on the source (r16770) using FF3.1 as build system. * Steps: 1) Download a user contributor bundles webapp (http://wiki.mozilla.org/Prism#User_Contributed_Bundles) or any webapp created through http://prismspectrum.com/bookmarklet/ 2) Try to install the webapp from the command line $ ./prism -webapp <path_to_webapp_file> ACTUAL OUTCOME: * line FileIO.stringToFile(cmd, appINI); in method accept (WebAppInstall.jsm), throws a permission denied exception: [Exception... "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsIFileOutputStream.init]" nsresult: "0x80520015 (NS_ERROR_FILE_ACCESS_DENIED)" location: "JS frame :: file:///home/agomes/prism/mozilla-build-system/mozilla/objdir/prism/dist/bin/extensions/prism-runtime@developer.mozilla.org/modules/WebAppProperties.jsm :: anonymous :: line 246" data: no]createApplication 3
Hum, after a quick dig into this, just notice the following: if I manually unpack (unzip) any of the webapps [1] generated by the prism_bookmarklet [2], the webapp.ini file in it after poor permissions: agomes@tonix:~/.webapps$ find -name webapp.ini | xargs ls -l -r-------- 1 agomes agomes 147 2008-05-27 20:09 ./www.mibbit.com@developer.mozilla.org/webapp.ini Same perms if I watch the temporary file created by newapp/modules/WebAppInstall.jsm#createApplication() method in /tmp. [1] http://prismspectrum.com/refraction/webapps/?C=M;O=D [2] http://prismspectrum.com/bookmarklet/get.php?title=Index%2520of%2520/refraction/webapps&description=&link=http%253A//prismspectrum.com/refraction/webapps/%253FC%253DM%253BO%253DD taking bug ...
Assignee: nobody → tonikitoo
Status: NEW → ASSIGNED
Attached patch patch v0.1Splinter Review
Check if webapp.ini has enough writtting permissions before FileIO.StringToFile. If it is not writable, set it as such.
Attachment #342744 - Flags: review?(matthew.gertner)
Attachment #342744 - Flags: review?(matthew.gertner) → review+
Keywords: checkin-needed
Completed: At revision: 19015
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Blocks: 450333
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: