Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CFEF7CC3D for ; Mon, 30 Apr 2012 08:36:08 +0000 (UTC) Received: (qmail 8632 invoked by uid 500); 30 Apr 2012 08:36:08 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 7618 invoked by uid 500); 30 Apr 2012 08:36:07 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 6970 invoked by uid 99); 30 Apr 2012 08:36:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Apr 2012 08:36:06 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Apr 2012 08:36:05 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 04F2E4276BD for ; Mon, 30 Apr 2012 08:35:45 +0000 (UTC) Date: Mon, 30 Apr 2012 08:35:45 +0000 (UTC) From: "Carl Mason (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <219266727.8446.1335774945021.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <517346231.2271.1335520068914.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CB-592) SQLITE Error code = 23, msg = not authorized (Intermittently) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CB-592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13264731#comment-13264731 ] Carl Mason commented on CB-592: ------------------------------- Hi Joe, Apologies, I was informed on the Group to log an issue and therefore was unsure what to categorize it as. (http://groups.google.com/group/phonegap/browse_thread/thread/23896acb0eb34602/72f3f6e035b46914?lnk=gst&q=not+authorized#72f3f6e035b46914) I agree, its very bizarre, especially as its intermittent, as if the O/S is getting confused about app's permissions? > SQLITE Error code = 23, msg = not authorized (Intermittently) > ------------------------------------------------------------- > > Key: CB-592 > URL: https://issues.apache.org/jira/browse/CB-592 > Project: Apache Callback > Issue Type: Bug > Components: Android, CordovaJS > Affects Versions: 1.6.1 > Environment: Android 3.1. Cordova 1.6.1 but also older versions (also appears to be the same in "phonegap" 1.3.0. Motorola Xoom. Eclipse. JQuery Mobile. > Reporter: Carl Mason > Assignee: Joe Bowser > Priority: Minor > > Intermittently receiving the error message, when executing an update statement on SQLLite database. > 04-27 10:22:38.288: I/SqliteDatabaseCpp(1428): sqlite returned: error code = 23, msg = not authorized, db=/data/data/com.packagename/databases/webview.db > (example) > tx.executeSql('UPDATE JOB SET postcode = "' + $("#tbPostcode").val() + '" WHERE id = "' + window.localStorage.getItem("job_id") +'"', [], querySuccess, errorCB); > It appears it could be to do with the version variable in openDatabase(..). > When I fire openDatabase on a FIRST execution with a version "1.0", create some tables and insert some data - I will get the above error intermittently when trying to update. However, if I then change all of the database interaction to a version "1.1" (or anything different) deploy the application and execute a second time - and go on to create a second database and start updating/interacting with the database the error goes away. Obviously this is not a feasible workaround when deploying an app live. -- 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