[ 
https://issues.apache.org/jira/browse/CB-347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13260981#comment-13260981
 ] 

Roy Yang commented on CB-347:
-----------------------------

@shazron

Hi Shazron, here is the dump when I push a new version to the iPad through 
xCode: 

2012-04-24 16:28:37.251 GreenSolutions[1382:707] Multi-tasking -> Device: YES, 
App: YES
2012-04-24 16:28:39.036 GreenSolutions[1382:707] ===Start 
CDVLocalStorageDiagnostics==========
2012-04-24 16:28:39.038 GreenSolutions[1382:707] iOS version: 5.1
2012-04-24 16:28:39.039 GreenSolutions[1382:707] 
=============================================
2012-04-24 16:28:39.040 GreenSolutions[1382:707] Printing list of backup info.
2012-04-24 16:28:39.041 GreenSolutions[1382:707] 
--------------------------------------
2012-04-24 16:28:39.042 GreenSolutions[1382:707] Label: localStorage database
2012-04-24 16:28:39.046 GreenSolutions[1382:707] shouldBackup: NO 
shouldRestore: NO
2012-04-24 16:28:39.047 GreenSolutions[1382:707] Original: 
/var/mobile/Applications/9A2A86F2-E827-4339-8C12-8903C814064F/Library/Caches/file__0.localstorage
 Exists?: YES
2012-04-24 16:28:39.048 GreenSolutions[1382:707] Backup: 
/var/mobile/Applications/9A2A86F2-E827-4339-8C12-8903C814064F/Documents/Backups/localstorage.appdata.db
 Exists?: YES
2012-04-24 16:28:39.049 GreenSolutions[1382:707] 
--------------------------------------
2012-04-24 16:28:39.050 GreenSolutions[1382:707] Label: websql main database
2012-04-24 16:28:39.051 GreenSolutions[1382:707] shouldBackup: NO 
shouldRestore: NO
2012-04-24 16:28:39.053 GreenSolutions[1382:707] Original: 
/var/mobile/Applications/9A2A86F2-E827-4339-8C12-8903C814064F/Library/Caches/Databases.db
 Exists?: NO
2012-04-24 16:28:39.054 GreenSolutions[1382:707] Backup: 
/var/mobile/Applications/9A2A86F2-E827-4339-8C12-8903C814064F/Documents/Backups/websqlmain.appdata.db
 Exists?: NO
2012-04-24 16:28:39.055 GreenSolutions[1382:707] 
--------------------------------------
2012-04-24 16:28:39.056 GreenSolutions[1382:707] Label: websql databases
2012-04-24 16:28:39.057 GreenSolutions[1382:707] shouldBackup: NO 
shouldRestore: NO
2012-04-24 16:28:39.058 GreenSolutions[1382:707] Original: 
/var/mobile/Applications/9A2A86F2-E827-4339-8C12-8903C814064F/Library/Caches/file__0
 Exists?: NO
2012-04-24 16:28:39.059 GreenSolutions[1382:707] Backup: 
/var/mobile/Applications/9A2A86F2-E827-4339-8C12-8903C814064F/Documents/Backups/websqldbs.appdata.db
 Exists?: NO
2012-04-24 16:28:39.060 GreenSolutions[1382:707] 
=============================================
2012-04-24 16:28:39.060 GreenSolutions[1382:707] Printing folder locations, 
check for existence.
2012-04-24 16:28:39.061 GreenSolutions[1382:707] Path 
/var/mobile/Applications/9A2A86F2-E827-4339-8C12-8903C814064F/Library/Caches 
exists?: YES
2012-04-24 16:28:39.063 GreenSolutions[1382:707] Path 
/var/mobile/Applications/9A2A86F2-E827-4339-8C12-8903C814064F/Library/WebKit 
exists?: NO
2012-04-24 16:28:39.064 GreenSolutions[1382:707] 
=============================================
2012-04-24 16:28:39.065 GreenSolutions[1382:707] Checking plist 
/var/mobile/Applications/9A2A86F2-E827-4339-8C12-8903C814064F/Library/Preferences/com.fsgi.GreenSolutions.plist
 for WebKit keys.
2012-04-24 16:28:39.066 GreenSolutions[1382:707] Key: 
WebKitLocalStorageDatabasePathPreferenceKey Value: 
/var/mobile/Applications/9A2A86F2-E827-4339-8C12-8903C814064F/Library/Caches
2012-04-24 16:28:39.067 GreenSolutions[1382:707] Key: WebDatabaseDirectory 
Value: 
/var/mobile/Applications/9A2A86F2-E827-4339-8C12-8903C814064F/Library/Caches
2012-04-24 16:28:39.068 GreenSolutions[1382:707] ===End 
CDVLocalStorageDiagnostics============

How do I get a dump of what happens inside the app when I do an over the air 
update? I'm no longer in xCode so I don't know where to get those NSLog 
messages. I have weinre - can I use that to output?
                
> localStorage / SQLDatabase Error after App update
> -------------------------------------------------
>
>                 Key: CB-347
>                 URL: https://issues.apache.org/jira/browse/CB-347
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.2.0, 1.3.0, 1.4.0, 1.5.0
>         Environment: iOS 5.01
> PhoneGap (Any version)
> Build.PhoneGap
>            Reporter: Urs Zimmermann
>            Assignee: Shazron Abdullah
>            Priority: Blocker
>              Labels: ios5.01, localstorage, phonegap, sqldatabase, websql
>             Fix For: 1.6.0
>
>         Attachments: WebKit-Prefs.zip
>
>
> Hello
> After I update my phonegap app containing values and dates in both 
> localStorage and SQLite database on iOS 5.1
> -> Call to window.openDatabase fails with "SECURITY_ERR: DOM Exception 18"
> -> Call to localStorage.setItem fails silently
> How to Reproduce:
> In a UIWebView, create a new DB or use localStorage from phonegap API
> Overwrite / update your app and open the same database or write to 
> localStorage
> Expected Results:
> We should see the data from the database and localStorage.
> Actual Results:
> Call to window.openDatabase fails with "SECURITY_ERR: DOM Exception 18"
> Call to localStorage.setItem fails silently
> References:
> https://groups.google.com/forum/#!topic/phonegap/egzXNrBRIbk/discussion
> https://groups.google.com/forum/#!topic/phonegap/jS2IVZcg8HI/discussion
> https://issues.apache.org/jira/browse/CB-330

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to