Actually the camel-sql component uses # as placeholders that itself afterwards replaces to ? chars
I just think that even though it's possible to have ? as parameter value its very seldom used and not widely known it's possible. /Claus Ibsen Apache Camel Committer Blog: http://davsclaus.blogspot.com/ On Thu, Nov 20, 2008 at 7:15 PM, Hiram Chirino <[EMAIL PROTECTED]> wrote: > An example use case could be where you pass a SQL query as a parameter > and part of the query has a ? in it. > > On Wed, Nov 19, 2008 at 1:23 PM, Claus Ibsen <[EMAIL PROTECTED]> wrote: >> Hi >> >> Yeah but the concrete example it wouldn't really be possible as it's >> just a bunch of properties for the java mail API. It uses properties >> and not setteres where we could use the IntrospectionHelper to set the >> parameters. So a true?ddd=sss would not be able to be set as a boolean >> and the parameter would be invalid and Camel will detect this. >> >> So I guess in this use-case we will leave it as is and that for some >> other components a ? char might be valid. However I can't think of >> such an example. >> >> >> /Claus Ibsen >> Apache Camel Committer >> Blog: http://davsclaus.blogspot.com/ >> >> >> >> On Wed, Nov 19, 2008 at 6:54 PM, Hiram Chirino <[EMAIL PROTECTED]> wrote: >>> I think the validation needs to go in at the component level. >>> It should be able to detect that 'true?ddd=sss' is not valid value >>> for 'mail.pop3.forgettopheaders' parameter. >>> >>> For some other component/parameter a '?' in the value might be valid. >>> >>> Regards, >>> Hiram >>> >>> On Sun, Nov 16, 2008 at 9:23 AM, Claus Ibsen <[EMAIL PROTECTED]> wrote: >>>> Hi >>>> >>>> I was messing CAMEL-1096 for camel-mail and I mistyped the URI adding >>>> a 2nd ? char in the URI string. >>>> However this one passes the validation. I was wondering if that normal? >>>> >>>> eg: >>>> pop3://localhost?username=james&mail.pop3.forgettopheaders=true?ddd=sss >>>> >>>> Would validate into 2 parameters >>>> username=james >>>> mail.pop3.forgettopheaders=true?ddd=sss >>>> >>>> So the 2nd parameter value is: true?ddd=sss >>>> >>>> I was wondering if we should add some validation that a 2nd ? is not >>>> allowed in the URI string? >>>> >>>> >>>> /Claus Ibsen >>>> Apache Camel Committer >>>> Blog: http://davsclaus.blogspot.com/ >>>> >>> >>> >>> >>> -- >>> Regards, >>> Hiram >>> >>> Blog: http://hiramchirino.com >>> >>> Open Source SOA >>> http://open.iona.com >>> >> > > > > -- > Regards, > Hiram > > Blog: http://hiramchirino.com > > Open Source SOA > http://open.iona.com >
