Well, I'm not sure why you consider that separate.  I don't see the
point in forcing the user to use encoded characters which lessen the
readability if the uri is not correct at the end.
Also what's the drawback in encoding the uri ? At the end, the uri
encoding is correct, but it gives the user more ease of use.
Can you point to such drawbacks or problems using such uris ? (sorry
if I missed some previous discussions).

On Wed, Jun 20, 2012 at 2:27 PM, Hadrian Zbarcea <hzbar...@gmail.com> wrote:
> Proper uri syntax and validation are 2 separate issues. This discussion is
> about the syntax. Since it's just syntax (proper encoding) I don't see any
> risk of loosing features and I agree we shouldn't.
>
> Hadrian
>
>
>
> On 06/20/2012 03:02 AM, Guillaume Nodet wrote:
>>
>> Do you have any particular example ?
>> I know for example activemq uses uri in an extended way with
>> parenthesis and commas and I'm not sure they are completely valid.
>> If getting back to real uris means loosing some features, that needs
>> to be made clear.
>>
>> On Mon, Jun 11, 2012 at 4:32 PM, Hadrian Zbarcea<hzbar...@gmail.com>
>>  wrote:
>>>
>>> This is not a new topic, but it looks like it's coming back in different
>>> threads. Since this is is the underlying issue, I'd suggest clarifying
>>> this
>>> first.
>>>
>>> At the core of the issue is a call to
>>> UnsafeUriCharactersEncoder.encode(uri)
>>> in DefaultComponent.createEndpoint(String), that made camel silently
>>> accept
>>> invalid URIs and then opened the gates to component writers using URIs
>>> that
>>> are not URIs. This behavior was there from the very beginning of Camel.
>>> (I
>>> refactored that code to introduce a deprecated from start preProcessUri
>>> that
>>> provided a path for cleaning up before camel-3.0, but that's a separate
>>> topic).
>>>
>>> To me, personally, using valid URIs for endpoints is a no-brainer, but I
>>> sense that there is disagreement on that.
>>>
>>> Thoughts?
>>> Hadrian
>>
>>
>>
>>
>



-- 
------------------------
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
FuseSource, Integration everywhere
http://fusesource.com

Reply via email to