Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 57EA5F1C3 for ; Tue, 26 Mar 2013 17:40:20 +0000 (UTC) Received: (qmail 66690 invoked by uid 500); 26 Mar 2013 17:40:20 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 66591 invoked by uid 500); 26 Mar 2013 17:40:20 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 66577 invoked by uid 99); 26 Mar 2013 17:40:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Mar 2013 17:40:20 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lorin.beer.dev@gmail.com designates 209.85.223.176 as permitted sender) Received: from [209.85.223.176] (HELO mail-ie0-f176.google.com) (209.85.223.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Mar 2013 17:40:14 +0000 Received: by mail-ie0-f176.google.com with SMTP id x14so9186138ief.21 for ; Tue, 26 Mar 2013 10:39:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=FtDh4HhHnEgka24yU+HHRu/LoxsQTiypkuLaLmeq1no=; b=sqGT/n2BJvaZwzuG/KmBmzPzIm/ABx2JAtKu4c1wsGfkoKGsBby0Y9bXgHqk5AKkQk 3SLBlnWumc03X7H7+t9874cB5Y59FGSYM32q0wh+XTxp4yS8lg9sM6f8nezb1hwPog9z vL587AVFkrsI5SKhepJNkCzIXBbWyg0F7FW87I3lyKdafZRdIFlEni10Pq9F4WgYrVsj Gs0D/IIrEXzOTbOU+LYn3N4O1y7C4iZBKBG6ArY0AqRN1kMupsbnngtG/UPlihWU84Jz G4iWZzkEW3UahboWvhqbazPr6t5qes2/M4CLVxame874Za85UariCOKwzSBNqdBXv6Jg ytNg== MIME-Version: 1.0 X-Received: by 10.50.11.229 with SMTP id t5mr1922053igb.65.1364319593186; Tue, 26 Mar 2013 10:39:53 -0700 (PDT) Received: by 10.64.8.167 with HTTP; Tue, 26 Mar 2013 10:39:53 -0700 (PDT) In-Reply-To: References: Date: Tue, 26 Mar 2013 10:39:53 -0700 Message-ID: Subject: Re: Mobile Spec File Tests Query string From: Lorin Beer To: dev@cordova.apache.org Content-Type: multipart/alternative; boundary=e89a8f646d15b6997c04d8d76818 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8f646d15b6997c04d8d76818 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable just went over this briefly with Brian, resolveLocalFileSystemURI is our desired inclusion to or form of the w3 spec due to our use case being outside the browser sandbox. So we just make sure URI conforms to URL? in which case, original question: is there any semantic reason for a query tag at the end of a file resource identifier? Or are we just making sure it can handle the breadth of the URL/URI syntax gracefully? On Tue, Mar 26, 2013 at 10:33 AM, Filip Maj wrote: > O that=B9s the one! > > On 3/26/13 10:29 AM, "Lorin Beer" wrote: > > >yeah, couldn't track that down either? Anyone? Paging > >"resolveLocalFileSystemURI" spec? > > > >the W3 spec has resolveLocalFileSystemURL only > >< > http://www.w3.org/TR/file-system-api/#widl-LocalFileSystem-resolveLocalFi > >leSystemURL-void-DOMString-url-EntryCallback-successCallback-ErrorCallba= ck > >-errorCallback> > > > > > >On Tue, Mar 26, 2013 at 10:23 AM, Filip Maj wrote: > > > >> I'm pretty sure the test simply follows the spec.. Which I can't find > >> (where the f is resolvelocalfilesystemuri spec'ed?) > >> > >> On 3/26/13 10:18 AM, "Lorin Beer" wrote: > >> > >> >Hey guys, > >> > > >> >In file.tests.js, line 267: > >> > > >> > >> > https://github.com/apache/cordova-mobile-spec/blob/master/autotest/tests/ > >>f > >> >ile.tests.js#L267 > >> > > >> >there is a URI passed to resolveLocalFileSystemURI with a query strin= g > >> >appended to the end. The test is meant to return a valid entry. > >> > > >> >BB7 and BB10 currently flunk the test, returning with an "Invalid > >>Symbol" > >> >type error. > >> > > >> >I checked the iOS handling of this: > >> > > >> > >> > https://github.com/apache/cordova-ios/blob/master/CordovaLib/Classes/CDVF > >>i > >> >le.m#L218 > >> > > >> >and the query string is stripped out with the call to NSUrl path. > >> > > >> >Questions: > >> > > >> >1. what's the point of the test? Just to test handling of valid URI > >> >with syntactically but semantically meaningless query string? > >> >2. is there any purpose to a query string on a URI mean to be resolve= d > >>to > >> >a > >> >file path? > >> > > >> >Just want to understand this fully before implementing the handling o= n > >>BB > >> > >> > > --e89a8f646d15b6997c04d8d76818--