You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2010/07/06 11:08:51 UTC
[jira] Commented: (CAMEL-2816) selector spec should be
fromURL="someQ?selector=CamelFileNameOnly like 'SomeFile%'"
[ https://issues.apache.org/activemq/browse/CAMEL-2816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60445#action_60445 ]
Claus Ibsen commented on CAMEL-2816:
------------------------------------
This is because you set the configuration using endpoint URI which is encoded according to the standards
http://en.wikipedia.org/wiki/URI_encoding
{code}
*Current standard*
The generic URI syntax mandates that new URI schemes that provide for the representation of character data in a URI must, in effect, represent characters from the unreserved set without translation, and should convert all other characters to bytes according to UTF-8, and then percent-encode those values. This requirement was introduced in January 2005 with the publication of RFC 3986. URI schemes introduced before this date are not affected.
{code}
Since the {{%}} char is *not* from the _unreserved set_ it falls into the rule of having to be converted to bytes and then percent-encoded.
So the implementation in Camel is correct.
> selector spec should be fromURL="someQ?selector=CamelFileNameOnly like 'SomeFile%'"
> -------------------------------------------------------------------------------------
>
> Key: CAMEL-2816
> URL: https://issues.apache.org/activemq/browse/CAMEL-2816
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-core
> Affects Versions: 2.2.0
> Reporter: ray
> Priority: Minor
>
> But Came only works with the following spec: fromURL="someQ?selector=CamelFileNameOnly like 'SomeFile%25'"
> In summary the [standard JMS selector wilcard|http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/jms/Message.html] (x like '%y%') is not supported.
> Instead the % must be encoded as %25 (hex value for %), which is ugly.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.