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 A8514CFB6 for ; Wed, 30 May 2012 08:33:32 +0000 (UTC) Received: (qmail 48326 invoked by uid 500); 30 May 2012 08:33:32 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 47868 invoked by uid 500); 30 May 2012 08:33:26 -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 47562 invoked by uid 99); 30 May 2012 08:33:23 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 May 2012 08:33:23 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id BAFCA14285B for ; Wed, 30 May 2012 08:33:23 +0000 (UTC) Date: Wed, 30 May 2012 08:33:23 +0000 (UTC) From: "Kimmo Puputti (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <1395940397.15306.1338366803770.JavaMail.jiratomcat@issues-vm> In-Reply-To: <2091500605.10353.1338283343581.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (CB-838) localStorage breaks with certain characters MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13285505#comment-13285505 ] Kimmo Puputti commented on CB-838: ---------------------------------- I made a simple app to test the localStorage read/write handling of custom strings: https://github.com/kpuputti/cordova-localstorage-experiment I noticed that writing a string with a forward slash works, but when it is read, the string is cut from the first occurrence of the slash character. With the quote character, the string is saved, but the whole app crashes when it is attempted to read again. >From logs: "A first chance exception of type 'System.SystemException' occurred in Microsoft.Phone.Interop.dll" and a popup: "SystemException was unhandled" "An unknown error has occurred. Error: 80020101." One possible fix that comes to mind is e.g. base64 encode everything that is saved to localStorage, and decode back when read. Any thoughts? > localStorage breaks with certain characters > ------------------------------------------- > > Key: CB-838 > URL: https://issues.apache.org/jira/browse/CB-838 > Project: Apache Cordova > Issue Type: Bug > Components: WP7 > Affects Versions: 1.7.0 > Reporter: Kimmo Puputti > Assignee: Jesse MacFadyen > > The localStorage API seems to break with quote ( ' ) and forward slash ( / ) characters in the value. > This might be an issue in the native browser view, but can it be fixed in the Cordova layer (as the iOS localStorage fix)? > More info: > https://groups.google.com/group/phonegap/browse_thread/thread/925ab19412d04e37?pli=1 -- 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