atom feed11 messages in org.apache.velocity.userRe: Incompatibilities in VELTOOLS fro...
FromSent OnAttachments
Christopher SchultzJul 19, 2011 2:14 pm 
Christopher SchultzJul 19, 2011 2:44 pm 
Christopher SchultzJul 19, 2011 3:06 pm 
Nathan BubnaJul 19, 2011 5:03 pm 
Nathan BubnaJul 19, 2011 5:11 pm 
Christopher SchultzJul 20, 2011 8:23 am 
Christopher SchultzJul 20, 2011 8:26 am 
Nathan BubnaJul 20, 2011 8:28 am 
Christopher SchultzJul 20, 2011 8:32 am 
Christopher SchultzJul 20, 2011 8:50 am 
Claude BrissonJul 20, 2011 9:44 am 
Subject:Re: Incompatibilities in VELTOOLS from 1.4 -> 2.0 (was: Disappearance of LinkTool.setRelative)
From:Nathan Bubna (
Date:Jul 19, 2011 5:11:58 pm

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 <> wrote:


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 <>" 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