You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Gabi Schaffzin (Created) (JIRA)" <ji...@apache.org> on 2012/03/30 15:12:27 UTC

[jira] [Created] (CB-414) When upgrading 1.4 app to 1.6.0rc1 on iOS5.1, still getting deny file-write-create error on window.openDatabase()

When upgrading 1.4 app to 1.6.0rc1 on iOS5.1, still getting deny file-write-create error on window.openDatabase()
-----------------------------------------------------------------------------------------------------------------

                 Key: CB-414
                 URL: https://issues.apache.org/jira/browse/CB-414
             Project: Apache Callback
          Issue Type: Bug
          Components: CordovaJS
    Affects Versions: 1.6.0
         Environment: Cordova 1.6.0rc1, iOS5.1, Xcode 4.3
            Reporter: Gabi Schaffzin
            Assignee: Filip Maj


When calling window.openDatabase(), I'm still getting the "deny file-write-create /private/var/mobile/Applications/[XXXX]". 

This *only* happens when upgrading the previous version of my app. It doesn't happen when debugging the app directly on the device from Xcode. Nor does it happen when I delete the app and install the Ad-Hoc version as new.

I've tried calling window.openDatabase() on a completely new database (different name and identifier), but get the same error.

Is there a way I can force the app _not_ to seek out that file?

--
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

        

[jira] [Updated] (CB-414) When upgrading 1.4 app to 1.6.0rc1 on iOS5.1, still getting deny file-write-create error on window.openDatabase()

Posted by "Filip Maj (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Filip Maj updated CB-414:
-------------------------

    Component/s:     (was: CordovaJS)
                 iOS
       Assignee: Shazron Abdullah  (was: Filip Maj)

Changing the component tagged, don't think this is a JS issue.
                
> When upgrading 1.4 app to 1.6.0rc1 on iOS5.1, still getting deny file-write-create error on window.openDatabase()
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-414
>                 URL: https://issues.apache.org/jira/browse/CB-414
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.0
>         Environment: Cordova 1.6.0rc1, iOS5.1, Xcode 4.3
>            Reporter: Gabi Schaffzin
>            Assignee: Shazron Abdullah
>
> When calling window.openDatabase(), I'm still getting the "deny file-write-create /private/var/mobile/Applications/[XXXX]". 
> This *only* happens when upgrading the previous version of my app. It doesn't happen when debugging the app directly on the device from Xcode. Nor does it happen when I delete the app and install the Ad-Hoc version as new.
> I've tried calling window.openDatabase() on a completely new database (different name and identifier), but get the same error.
> Is there a way I can force the app _not_ to seek out that file?

--
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

        

[jira] [Commented] (CB-414) When upgrading 1.4 app to 1.6.0rc1 on iOS5.1, still getting deny file-write-create error on window.openDatabase()

Posted by "Shazron Abdullah (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13249074#comment-13249074 ] 

Shazron Abdullah commented on CB-414:
-------------------------------------

Don't know what's going on with your setup, but various others have tested this and it is working for them. Try the latest release from the mainline, or wait for 1.6.0 next week.
                
> When upgrading 1.4 app to 1.6.0rc1 on iOS5.1, still getting deny file-write-create error on window.openDatabase()
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-414
>                 URL: https://issues.apache.org/jira/browse/CB-414
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.0
>         Environment: Cordova 1.6.0rc1, iOS5.1, Xcode 4.3
>            Reporter: Gabi Schaffzin
>            Assignee: Shazron Abdullah
>
> When calling window.openDatabase(), I'm still getting the "deny file-write-create /private/var/mobile/Applications/[XXXX]". 
> This *only* happens when upgrading the previous version of my app. It doesn't happen when debugging the app directly on the device from Xcode. Nor does it happen when I delete the app and install the Ad-Hoc version as new.
> I've tried calling window.openDatabase() on a completely new database (different name and identifier), but get the same error.
> Is there a way I can force the app _not_ to seek out that file?

--
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

        

[jira] [Commented] (CB-414) When upgrading 1.4 app to 1.6.0rc1 on iOS5.1, still getting deny file-write-create error on window.openDatabase()

Posted by "Gabi Schaffzin (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13243193#comment-13243193 ] 

Gabi Schaffzin commented on CB-414:
-----------------------------------

When I run it from Xcode, the app works fine but I see no "Fix applies for database locations?" line. 

When I run it Ad-Hoc, I see that the fix _was_ applied, according to that console line, but I still get the error.

I've attached the two outputs here:

http://bit.ly/H51nq4

It's a bit messy, as 1.6.0rc1 has also broken my calls to console.log(), but that's a different issue, I suppose. 

Let me know if you need more than what I've attached.
                
> When upgrading 1.4 app to 1.6.0rc1 on iOS5.1, still getting deny file-write-create error on window.openDatabase()
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-414
>                 URL: https://issues.apache.org/jira/browse/CB-414
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.0
>         Environment: Cordova 1.6.0rc1, iOS5.1, Xcode 4.3
>            Reporter: Gabi Schaffzin
>            Assignee: Shazron Abdullah
>
> When calling window.openDatabase(), I'm still getting the "deny file-write-create /private/var/mobile/Applications/[XXXX]". 
> This *only* happens when upgrading the previous version of my app. It doesn't happen when debugging the app directly on the device from Xcode. Nor does it happen when I delete the app and install the Ad-Hoc version as new.
> I've tried calling window.openDatabase() on a completely new database (different name and identifier), but get the same error.
> Is there a way I can force the app _not_ to seek out that file?

--
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

        

[jira] [Commented] (CB-414) When upgrading 1.4 app to 1.6.0rc1 on iOS5.1, still getting deny file-write-create error on window.openDatabase()

Posted by "Shazron Abdullah (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13243186#comment-13243186 ] 

Shazron Abdullah commented on CB-414:
-------------------------------------

When that error happens, anything in the console log? Copy and paste into here. This is definitely the CB-347 issue, but I already check for this at startup.
                
> When upgrading 1.4 app to 1.6.0rc1 on iOS5.1, still getting deny file-write-create error on window.openDatabase()
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-414
>                 URL: https://issues.apache.org/jira/browse/CB-414
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.0
>         Environment: Cordova 1.6.0rc1, iOS5.1, Xcode 4.3
>            Reporter: Gabi Schaffzin
>            Assignee: Shazron Abdullah
>
> When calling window.openDatabase(), I'm still getting the "deny file-write-create /private/var/mobile/Applications/[XXXX]". 
> This *only* happens when upgrading the previous version of my app. It doesn't happen when debugging the app directly on the device from Xcode. Nor does it happen when I delete the app and install the Ad-Hoc version as new.
> I've tried calling window.openDatabase() on a completely new database (different name and identifier), but get the same error.
> Is there a way I can force the app _not_ to seek out that file?

--
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

        

[jira] [Commented] (CB-414) When upgrading 1.4 app to 1.6.0rc1 on iOS5.1, still getting deny file-write-create error on window.openDatabase()

Posted by "Shazron Abdullah (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13257662#comment-13257662 ] 

Shazron Abdullah commented on CB-414:
-------------------------------------

I'm writing a diagnostic plugin for this issue, at least one other person is having issues. See: https://issues.apache.org/jira/browse/CB-330?focusedCommentId=13255975&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13255975
                
> When upgrading 1.4 app to 1.6.0rc1 on iOS5.1, still getting deny file-write-create error on window.openDatabase()
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-414
>                 URL: https://issues.apache.org/jira/browse/CB-414
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.0
>         Environment: Cordova 1.6.0rc1, iOS5.1, Xcode 4.3
>            Reporter: Gabi Schaffzin
>            Assignee: Shazron Abdullah
>
> When calling window.openDatabase(), I'm still getting the "deny file-write-create /private/var/mobile/Applications/[XXXX]". 
> This *only* happens when upgrading the previous version of my app. It doesn't happen when debugging the app directly on the device from Xcode. Nor does it happen when I delete the app and install the Ad-Hoc version as new.
> I've tried calling window.openDatabase() on a completely new database (different name and identifier), but get the same error.
> Is there a way I can force the app _not_ to seek out that file?

--
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

        

[jira] [Commented] (CB-414) When upgrading 1.4 app to 1.6.0rc1 on iOS5.1, still getting deny file-write-create error on window.openDatabase()

Posted by "Gabi Schaffzin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13261965#comment-13261965 ] 

Gabi Schaffzin commented on CB-414:
-----------------------------------

Just installed 1.6.1 and made tweaks as per instructions from [CB-330|https://issues.apache.org/jira/browse/CB-330] and it works perfectly.

Though one important note, instead of adding "CDVLocalStorage.h" to "AppDelegate.m" I added  #import <Cordova/CDVLocalStorage.h>

Thank you Shazron for all of the help!
                
> When upgrading 1.4 app to 1.6.0rc1 on iOS5.1, still getting deny file-write-create error on window.openDatabase()
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-414
>                 URL: https://issues.apache.org/jira/browse/CB-414
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.0
>         Environment: Cordova 1.6.0rc1, iOS5.1, Xcode 4.3
>            Reporter: Gabi Schaffzin
>            Assignee: Shazron Abdullah
>
> When calling window.openDatabase(), I'm still getting the "deny file-write-create /private/var/mobile/Applications/[XXXX]". 
> This *only* happens when upgrading the previous version of my app. It doesn't happen when debugging the app directly on the device from Xcode. Nor does it happen when I delete the app and install the Ad-Hoc version as new.
> I've tried calling window.openDatabase() on a completely new database (different name and identifier), but get the same error.
> Is there a way I can force the app _not_ to seek out that file?

--
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

        

[jira] [Resolved] (CB-414) When upgrading 1.4 app to 1.6.0rc1 on iOS5.1, still getting deny file-write-create error on window.openDatabase()

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah resolved CB-414.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 1.7.0
    
> When upgrading 1.4 app to 1.6.0rc1 on iOS5.1, still getting deny file-write-create error on window.openDatabase()
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-414
>                 URL: https://issues.apache.org/jira/browse/CB-414
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.0
>         Environment: Cordova 1.6.0rc1, iOS5.1, Xcode 4.3
>            Reporter: Gabi Schaffzin
>            Assignee: Shazron Abdullah
>             Fix For: 1.7.0
>
>
> When calling window.openDatabase(), I'm still getting the "deny file-write-create /private/var/mobile/Applications/[XXXX]". 
> This *only* happens when upgrading the previous version of my app. It doesn't happen when debugging the app directly on the device from Xcode. Nor does it happen when I delete the app and install the Ad-Hoc version as new.
> I've tried calling window.openDatabase() on a completely new database (different name and identifier), but get the same error.
> Is there a way I can force the app _not_ to seek out that file?

--
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

        

[jira] [Commented] (CB-414) When upgrading 1.4 app to 1.6.0rc1 on iOS5.1, still getting deny file-write-create error on window.openDatabase()

Posted by "Shazron Abdullah (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13243188#comment-13243188 ] 

Shazron Abdullah commented on CB-414:
-------------------------------------

If the fix was applied, you should see this in your console log:
"Fix applied for database locations?: YES" (or NO if it failed)
                
> When upgrading 1.4 app to 1.6.0rc1 on iOS5.1, still getting deny file-write-create error on window.openDatabase()
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-414
>                 URL: https://issues.apache.org/jira/browse/CB-414
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.0
>         Environment: Cordova 1.6.0rc1, iOS5.1, Xcode 4.3
>            Reporter: Gabi Schaffzin
>            Assignee: Shazron Abdullah
>
> When calling window.openDatabase(), I'm still getting the "deny file-write-create /private/var/mobile/Applications/[XXXX]". 
> This *only* happens when upgrading the previous version of my app. It doesn't happen when debugging the app directly on the device from Xcode. Nor does it happen when I delete the app and install the Ad-Hoc version as new.
> I've tried calling window.openDatabase() on a completely new database (different name and identifier), but get the same error.
> Is there a way I can force the app _not_ to seek out that file?

--
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

        

[jira] [Commented] (CB-414) When upgrading 1.4 app to 1.6.0rc1 on iOS5.1, still getting deny file-write-create error on window.openDatabase()

Posted by "Shazron Abdullah (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13257867#comment-13257867 ] 

Shazron Abdullah commented on CB-414:
-------------------------------------

See CB-330 for the diagnostics plugin.
                
> When upgrading 1.4 app to 1.6.0rc1 on iOS5.1, still getting deny file-write-create error on window.openDatabase()
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-414
>                 URL: https://issues.apache.org/jira/browse/CB-414
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.0
>         Environment: Cordova 1.6.0rc1, iOS5.1, Xcode 4.3
>            Reporter: Gabi Schaffzin
>            Assignee: Shazron Abdullah
>
> When calling window.openDatabase(), I'm still getting the "deny file-write-create /private/var/mobile/Applications/[XXXX]". 
> This *only* happens when upgrading the previous version of my app. It doesn't happen when debugging the app directly on the device from Xcode. Nor does it happen when I delete the app and install the Ad-Hoc version as new.
> I've tried calling window.openDatabase() on a completely new database (different name and identifier), but get the same error.
> Is there a way I can force the app _not_ to seek out that file?

--
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

        

[jira] [Commented] (CB-414) When upgrading 1.4 app to 1.6.0rc1 on iOS5.1, still getting deny file-write-create error on window.openDatabase()

Posted by "Gabi Schaffzin (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13257175#comment-13257175 ] 

Gabi Schaffzin commented on CB-414:
-----------------------------------

I've upgraded to 1.6.0 and am still seeing this issue. Here's what I'm doing:

1. Install version of app onto iPhone from the iTunes Store which was built with 1.4
2. Archive app from Xcode. This version has been stripped down—it's a new Cordova 1.6.0 project with my app's identifier. No plugins. It also has a button that calls window.openDatabase().
3. Distribute archive vía TestFlight and install.
4. Open app. See the following in the Device Console:

Apr 18 22:34:26 unknown [AppName][13537] <Warning>: Multi-tasking -> Device: YES, App: YES
> 
Apr 18 22:34:26 unknown kernel[0] <Debug>: launchd[13537] Builtin profile: container (sandbox)
Apr 18 22:34:26 unknown kernel[0] <Debug>: launchd[13537] Container: /private/var/mobile/Applications/EB4A77B4-697C-43AE-9E61-528256E3D837 [69] (sandbox)
Apr 18 22:34:26 unknown [AppName][13537] <Warning>: Fix applied for database locations?: YES

5. Click on button that calls window.openDatabase(). See the following in the Device Console:

Apr 18 22:34:50 unknown sandboxd[13539] <Notice>: [AppName](13537) deny file-write-create /private/var/mobile/Applications/042E8575-C034-46B2-A104-4F2E247D58C2

6. Force quit app.
7. Reopen app.
8. Click on button and no error. Database works fine.

I would try to create a work around, but Apple won't approve an app that force quits programmatically and I'd rather not ask my users to do it. 

I am completely at a loss here. If no one else seems to be having this issue, I understand, but do you think you can recommend a work around?
                
> When upgrading 1.4 app to 1.6.0rc1 on iOS5.1, still getting deny file-write-create error on window.openDatabase()
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-414
>                 URL: https://issues.apache.org/jira/browse/CB-414
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.0
>         Environment: Cordova 1.6.0rc1, iOS5.1, Xcode 4.3
>            Reporter: Gabi Schaffzin
>            Assignee: Shazron Abdullah
>
> When calling window.openDatabase(), I'm still getting the "deny file-write-create /private/var/mobile/Applications/[XXXX]". 
> This *only* happens when upgrading the previous version of my app. It doesn't happen when debugging the app directly on the device from Xcode. Nor does it happen when I delete the app and install the Ad-Hoc version as new.
> I've tried calling window.openDatabase() on a completely new database (different name and identifier), but get the same error.
> Is there a way I can force the app _not_ to seek out that file?

--
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

       

[jira] [Commented] (CB-414) When upgrading 1.4 app to 1.6.0rc1 on iOS5.1, still getting deny file-write-create error on window.openDatabase()

Posted by "Gabi Schaffzin (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13242506#comment-13242506 ] 

Gabi Schaffzin commented on CB-414:
-----------------------------------

Ah—my apologies. Thanks.
                
> When upgrading 1.4 app to 1.6.0rc1 on iOS5.1, still getting deny file-write-create error on window.openDatabase()
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-414
>                 URL: https://issues.apache.org/jira/browse/CB-414
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.0
>         Environment: Cordova 1.6.0rc1, iOS5.1, Xcode 4.3
>            Reporter: Gabi Schaffzin
>            Assignee: Shazron Abdullah
>
> When calling window.openDatabase(), I'm still getting the "deny file-write-create /private/var/mobile/Applications/[XXXX]". 
> This *only* happens when upgrading the previous version of my app. It doesn't happen when debugging the app directly on the device from Xcode. Nor does it happen when I delete the app and install the Ad-Hoc version as new.
> I've tried calling window.openDatabase() on a completely new database (different name and identifier), but get the same error.
> Is there a way I can force the app _not_ to seek out that file?

--
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