error in createShortcut ... NS_ERROR_FILE_ACCESS_DENIED

Bug #460685 reported by Franchux
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
webfav
Confirmed
Low
Unassigned

Bug Description

Webfav is working with my user. I have just create a new account and when I try to add a new favourite with webfav, an popup with an error appears:

error in createShortcut: [Exception... "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsILocalFile.create]" nsresult: "0x80520015 (NS_ERROR_FILE_ACCESS_DENIED)" location: "JS frame :: chrome://webfav/content/webfav.js :: createShortcut :: line 144" data: no]

This new user was created from zero with the adduser command and i haven't modified any configuration (the first app that I had lauched after the login was firefox).

I have disabled all extensions but the problem persist.

S.O.: Ubuntu Karmic beta (last system upated 25-10-2009)
Webfav: 1.16-0ubuntu1
Firefox: 3.5.3+build1+nobinonly-0ubuntu6
Firefox extensions: Ubuntu Firefox Modifications 0.8
Firefox theme: Default 3.5.3
Firefox language: Firefox es-Es 3.5.2

Revision history for this message
Franchux (franchux) wrote :

Ok, I think that I have got the cause:

1.- Login as userA
2.- Open firefox. A directory named /tmp/webfav is created. It is owned by userA
3.- Open another session as userB
4.- Firefox can not write on /tmp/webfav so it launch the exception

If you delete /tmp/webfav (rm -rf /tmp/webfav), userB can add favourites without problem.

A possible solution can be to create directory in temp with the user name in the name (something like /tmp/webfav-userA)

Revision history for this message
David Barth (dbarth) wrote :

Confirmed, this is a flaw in webfav.

Changed in webfav:
importance: Undecided → Low
status: New → Triaged
status: Triaged → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.