Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 11381 invoked from network); 30 Jan 2007 23:46:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Jan 2007 23:46:36 -0000 Received: (qmail 87147 invoked by uid 500); 30 Jan 2007 23:46:39 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 87104 invoked by uid 500); 30 Jan 2007 23:46:38 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 87093 invoked by uid 99); 30 Jan 2007 23:46:38 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Jan 2007 15:46:38 -0800 X-ASF-Spam-Status: No, hits=0.8 required=10.0 tests=INFO_TLD X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [68.142.206.238] (HELO smtp105.plus.mail.mud.yahoo.com) (68.142.206.238) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 30 Jan 2007 15:46:28 -0800 Received: (qmail 1530 invoked from network); 30 Jan 2007 23:46:04 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:Mime-Version:In-Reply-To:References:Content-Type:Message-Id:Content-Transfer-Encoding:From:Subject:Date:To:X-Mailer; b=ETkHbdlAR2fAYpUFtSt0nxn609vkfWjX7mpJMNoBVs7qccy/SWPOw47JB821KQZ01+9yLLDa+W+kYCTALiHoHzBbAnP0xes2WHT+r1iRKB7WBsEBSJ26qBY3Cfgao6RmjTlbWJ5F5HnsDiC3K7XD6vU3PB8Wmvbtd0JKgJjTqvg= ; Received: from unknown (HELO ?10.11.55.8?) (david_jencks@63.105.20.225 with plain) by smtp105.plus.mail.mud.yahoo.com with SMTP; 30 Jan 2007 23:46:03 -0000 X-YMail-OSG: hH9M.LAVM1mijk6YEIE4CEOaPLCOkcIsb_82bZmOt88WMY7IJ8ttn4_S.aWgS5FHUOQZeZ_ajeDtk61mQAvQxuVe_Od4aNqZfqk9nKgOmwrozGA0Duyi5sk7TnywmkHu1_8iIkyKPX3tgATId6LLd.84atLdzqGh Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <5eb405c70701051224u53cfa152q42c35c7796c44e7e@mail.gmail.com> References: <23F7E1A8-DA0E-4DA0-B6DF-F9F1EEF101F6@yahoo.com> <5eb405c70701051224u53cfa152q42c35c7796c44e7e@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <02E5BCFF-C32F-4DCC-835A-FFDF0A78EE34@yahoo.com> Content-Transfer-Encoding: 7bit From: David Jencks Subject: Re: Help needed on http methods and regular expressions Date: Tue, 30 Jan 2007 15:46:03 -0800 To: dev@geronimo.apache.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org I talked with Greg Wilkins a bit and this issue is apparently going to be fixed "soon": http://jcp.org/aboutJava/communityprocess/maintenance/jsr154/ servlet-2.5_MR6.html after checking that the last batch of xsd changes didn't break anything I'm going to patch the web-app schema and re-push the xmlbeans schema jar. thanks david jencks On Jan 5, 2007, at 12:24 PM, Jarek Gawor wrote: > It looks to me like the regex in the schema file does not quite match > the HTTP spec. First, the regex in the schema file does not allow > numbers (the HTTP spec does), and second it also allows for > non-english characters (the HTTP spec does not). The regex basically > allows Unicode letters only (see all L* categories on > http://www.fileformat.info/info/unicode/category/index.htm). > > I think that regex should be something like: > > [\u0021-\u007E-[\(\)<>\{\}@,:;\[\]\?\\/]]+ > > Jarek > > On 1/4/07, David Jencks wrote: >> Chris Cardona has been trying to test the jacc 1.1 extended http- >> method support by deploying slide (GERONIMO-1747) and I don't know >> enough about regular expressions to see where the problem is. >> >> The http 1.1 spec says: >> >> (5.1.1) extension-method = token >> >> (2.2) >> >> token = 1* >> separators = "(" | ")" | "<" | ">" | "@" >> | "," | ";" | ":" | "\" | <"> >> | "/" | "[" | "]" | "?" | "=" >> | "{" | "}" | SP | HT >> >> CHAR = >> >> CTL = > (octets 0 - 31) and DEL (127)> >> >> I think this means a hyphen is allowed in an extension-method. >> >> The web-app 2.5 schema says: >> >> >> >> >> >> >> A HTTP method type as defined in HTTP 1.1 section 2.2. >> >> >> >> >> >> >> >> >> >> >> I have roughly no clue what that means. >> >> Xmlbeans is complaining: >> >> cvc-datatype-valid.1.1: string value 'VERSION-CONTROL' does not match >> patter >> n for http-methodType in namespace http://java.sun.com/xml/ns/javaee, >> error: cvc >> -datatype-valid.1.1: string value 'BASELINE-CONTROL' does not match >> pattern for >> http-methodType in namespace http://java.sun.com/xml/ns/javaee] >> >> I see 3 possiblilites: >> >> 1. I'm wrong and http 1.1 spec does not allow hyphens in extension >> methods >> 2. sun is wrong and the regexp in http-methodType means something >> other than the definition in the http 1.1 spec >> 3. xmlbeans is wrong and is not interpreting the regexp in the schema >> correctly. >> >> Anyone have a clue? >> Help! >> >> thanks >> david jencks >> >>