[Opa] UriParser doesn't handle non-key-value query strings

Owen Gunden ogunden at phauna.org
Fri Jan 27 18:57:51 UTC 2012


Awesome, thanks for being responsive guys. I will work around it until
a fix is available.

On Fri, Jan 27, 2012 at 8:25 AM, Adam Koprowski
<Adam.Koprowski at mlstate.com> wrote:
>    Dear Owen,
>
>   Thanks for the report (this and the following one). As Rudy replied to the
> other one, we'll try to work on a patch; if you want to submit one yourself
> you're of course more than welcome :).
>
>   Best,
>   Adam
>
> On Thu, Jan 26, 2012 at 23:41, Owen Gunden <ogunden at phauna.org> wrote:
>>
>> This parses:
>>
>> http://www.foo.com/foo/bar?baz=quux
>>
>> But this does not:
>>
>> http://www.foo.com/foo/bar?baz
>>
>> Per the rfc, there's no requirement that the query string be in
>> key/value format: http://tools.ietf.org/html/rfc3986#section-3.4
>>
>>
>> You're going to ask for a patch, right?
>>
>> Patching this seems like it requires a type change through to the
>> interface so I'm not sure how badly you want that change. Right now we
>> have:
>>
>>                 ; query : list((string,string))
>>
>> which I would replace with
>>
>>                ; query : query
>>
>> and
>>
>>  type query = { empty } / { key_value_pairs:list((string,string)) } /
>> { plain:string }
>> _______________________________________________
>> Opa mailing list
>> Opa at lists.owasp.org
>> https://lists.owasp.org/mailman/listinfo/opa
>
>
>
>
> --
> Adam Koprowski                [http://adam-koprowski.net]
> Opa Tech Evangelist @ MLstate [http://opalang.org | http://mlstate.com]


More information about the Opa mailing list