| From | Sent On | Attachments |
|---|---|---|
| Christopher Schultz | Jul 19, 2011 2:14 pm | |
| Christopher Schultz | Jul 19, 2011 2:39 pm | |
| Christopher Schultz | Jul 19, 2011 2:44 pm | |
| Christopher Schultz | Jul 19, 2011 3:06 pm | |
| Nathan Bubna | Jul 19, 2011 4:55 pm | |
| Nathan Bubna | Jul 19, 2011 5:03 pm | |
| Nathan Bubna | Jul 19, 2011 5:11 pm | |
| Christopher Schultz | Jul 20, 2011 8:23 am | |
| Christopher Schultz | Jul 20, 2011 8:26 am | |
| Nathan Bubna | Jul 20, 2011 8:28 am | |
| Christopher Schultz | Jul 20, 2011 8:32 am | |
| Nathan Bubna | Jul 20, 2011 8:45 am | |
| Christopher Schultz | Jul 20, 2011 8:50 am | |
| Claude Brisson | Jul 20, 2011 9:44 am |
| Subject: | Re: Incompatibilities in VELTOOLS from 1.4 -> 2.0 (was: Disappearance of LinkTool.setRelative) | |
|---|---|---|
| From: | Nathan Bubna (nbu...@gmail.com) | |
| Date: | Jul 19, 2011 5:11:58 pm | |
| List: | org.apache.velocity.user | |
the createURI method ignores query params for opaque URIs, that's the only explanation that seems possible to me with what i know of your code. it's been years since i wrote all this, so i don't recall all the vagaries of the URI class and opaque URI handling. but it definitely seems wrong to not allow params on a mailto link. i'd say that needs to be fixed. i've no idea when i'd be able to get to that.
On Tue, Jul 19, 2011 at 3:07 PM, Christopher Schultz <chr...@christopherschultz.net> wrote:
All,
On 7/19/2011 5:39 PM, Christopher Schultz wrote:
I'm getting a syntax error for a "mailto" link which I'll have to investigate.
I fixed one problem (URI class was objecting to spaces I had in the "opaque" portion of the URI - something like "Chris Schultz <chr...@christopherschultz.net>" as the URI) but it appears that LinkTool will no longer allow me to add query parameters to mailto links.
Something like this doesn't work:
$link.uri("mailto:foo").param('foo', 'bar')
Result: mailto:foo Expected: mailto:foo?foo=bar
I've had a quick look at the code and I can't understand why it won't allow that. Any ideas?
Thanks, -chris





