Bug 46999 - [Qt] The default path of HTML5 QWebSettings::enablePeristentStorage violates Symbian Platform Security
Summary: [Qt] The default path of HTML5 QWebSettings::enablePeristentStorage violates ...
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: S60 Hardware S60 3rd edition
: P2 Normal
Assignee: George Guo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-01 11:35 PDT by George Guo
Modified: 2010-10-05 07:08 PDT (History)
4 users (show)

See Also:


Attachments
Patch for the solution. (1.32 KB, patch)
2010-10-04 07:08 PDT, George Guo
hausmann: review-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description George Guo 2010-10-01 11:35:17 PDT
Usually application does not have ALLFILE capability in Symbian

If the application has no ALLFILE capability, tried to enable persistentStorage in Symbian with this function call:
            QWebSettings::enablePersistentStorage();

Application will get this following error: 

04:52:12.697 PlatSec ERROR - Capability check failed - A Message (function number=0x00000016) from Thread NokiaBrowser[10008d39]0001::NokiaBrowser, sent to Server !FileServer, was checked by Thread efile.exe[100039e3]0001::Main and was found to be missing the capabilities: AllFiles . Additional diagnostic message: Entry
Comment 1 George Guo 2010-10-02 05:03:14 PDT
solution patch is on the way
Comment 2 George Guo 2010-10-04 07:08:33 PDT
Created attachment 69630 [details]
Patch for the solution. 

The default path on Symbian is c:\private\uid, the makedir then will change c:\private which is out the control of the application process. On symbian a process can only change your own process/uid area with out ALLFILE capability. By adding additional path so it becomes c:\private\uid\StoragePath, then makedir will only change c:\private\uid which is completely in control of the application because it's in it's uid area.
Comment 3 Andreas Kling 2010-10-04 11:41:56 PDT
Comment on attachment 69630 [details]
Patch for the solution. 

Please tick the "patch" checkbox when uploading patches. :-)
Comment 4 Simon Hausmann 2010-10-05 07:07:34 PDT
This is actually a bug in QDir::mkpath, which can now be tracked at

http://bugreports.qt.nokia.com/browse/QTBUG-14255
Comment 5 Simon Hausmann 2010-10-05 07:08:59 PDT
Comment on attachment 69630 [details]
Patch for the solution. 

This should really be fixed in Qt. I don't think appending "StoragePath" on all platforms for this rather minor Symbian specific glitch is the best way to fix this.