[jira] [Commented] (QPIDJMS-374) Double encoded query parameters
[ https://issues.apache.org/jira/browse/QPIDJMS-374?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16427539#comment-16427539 ] ASF GitHub Bot commented on QPIDJMS-374: Github user asfgit closed the pull request at: https://github.com/apache/qpid-jms/pull/17 > Double encoded query parameters > --- > > Key: QPIDJMS-374 > URL: https://issues.apache.org/jira/browse/QPIDJMS-374 > Project: Qpid JMS > Issue Type: Bug > Components: qpid-jms-client >Affects Versions: 0.31.0 >Reporter: Michael Bolz >Priority: Major > > When query parameters are parsed in > [TransportFactory|https://github.com/apache/qpid-jms/blob/70fe1b882e1381b1016a10b0707f6e112d4e0598/qpid-jms-client/src/main/java/org/apache/qpid/jms/transports/TransportFactory.java#L51] > and > [AmqpProviderFactory|https://github.com/apache/qpid-jms/blob/70fe1b882e1381b1016a10b0707f6e112d4e0598/qpid-jms-client/src/main/java/org/apache/qpid/jms/provider/amqp/AmqpProviderFactory.java#L41] > and than further processed via > [PropertyUtil#replaceQuery|https://github.com/apache/qpid-jms/blob/70fe1b882e1381b1016a10b0707f6e112d4e0598/qpid-jms-client/src/main/java/org/apache/qpid/jms/util/PropertyUtil.java#L64] > the values gets double encoded. > See also Javadoc of > [PropertyUtil#replaceQuery|https://github.com/apache/qpid-jms/blob/70fe1b882e1381b1016a10b0707f6e112d4e0598/qpid-jms-client/src/main/java/org/apache/qpid/jms/util/PropertyUtil.java#L64]: > {quote} > The string values in the Map will be URL Encoded by this method which means > that if an > already encoded value is passed it will be double encoded resulting in > corrupt values > in the newly created URI. > {quote} > For a fix I created a [pull > request|https://github.com/apache/qpid-jms/pull/17]. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org
[jira] [Commented] (QPIDJMS-374) Double encoded query parameters
[ https://issues.apache.org/jira/browse/QPIDJMS-374?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16427538#comment-16427538 ] ASF subversion and git services commented on QPIDJMS-374: - Commit b96f4f2ab2ee635661c175b48e39cb3c65006b6a in qpid-jms's branch refs/heads/master from [~mirbo] [ https://git-wip-us.apache.org/repos/asf?p=qpid-jms.git;h=b96f4f2 ] QPIDJMS-374: Use PU.parseQuery(remoteURI) to avoid double encoding > Double encoded query parameters > --- > > Key: QPIDJMS-374 > URL: https://issues.apache.org/jira/browse/QPIDJMS-374 > Project: Qpid JMS > Issue Type: Bug > Components: qpid-jms-client >Affects Versions: 0.31.0 >Reporter: Michael Bolz >Priority: Major > > When query parameters are parsed in > [TransportFactory|https://github.com/apache/qpid-jms/blob/70fe1b882e1381b1016a10b0707f6e112d4e0598/qpid-jms-client/src/main/java/org/apache/qpid/jms/transports/TransportFactory.java#L51] > and > [AmqpProviderFactory|https://github.com/apache/qpid-jms/blob/70fe1b882e1381b1016a10b0707f6e112d4e0598/qpid-jms-client/src/main/java/org/apache/qpid/jms/provider/amqp/AmqpProviderFactory.java#L41] > and than further processed via > [PropertyUtil#replaceQuery|https://github.com/apache/qpid-jms/blob/70fe1b882e1381b1016a10b0707f6e112d4e0598/qpid-jms-client/src/main/java/org/apache/qpid/jms/util/PropertyUtil.java#L64] > the values gets double encoded. > See also Javadoc of > [PropertyUtil#replaceQuery|https://github.com/apache/qpid-jms/blob/70fe1b882e1381b1016a10b0707f6e112d4e0598/qpid-jms-client/src/main/java/org/apache/qpid/jms/util/PropertyUtil.java#L64]: > {quote} > The string values in the Map will be URL Encoded by this method which means > that if an > already encoded value is passed it will be double encoded resulting in > corrupt values > in the newly created URI. > {quote} > For a fix I created a [pull > request|https://github.com/apache/qpid-jms/pull/17]. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org
[jira] [Commented] (QPIDJMS-374) Double encoded query parameters
[ https://issues.apache.org/jira/browse/QPIDJMS-374?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16426067#comment-16426067 ] ASF GitHub Bot commented on QPIDJMS-374: Github user tabish121 commented on the issue: https://github.com/apache/qpid-jms/pull/17 You need to squash the commits and force push so that it is contained in one commit, thanks. > Double encoded query parameters > --- > > Key: QPIDJMS-374 > URL: https://issues.apache.org/jira/browse/QPIDJMS-374 > Project: Qpid JMS > Issue Type: Bug > Components: qpid-jms-client >Affects Versions: 0.31.0 >Reporter: Michael Bolz >Priority: Major > > When query parameters are parsed in > [TransportFactory|https://github.com/apache/qpid-jms/blob/70fe1b882e1381b1016a10b0707f6e112d4e0598/qpid-jms-client/src/main/java/org/apache/qpid/jms/transports/TransportFactory.java#L51] > and > [AmqpProviderFactory|https://github.com/apache/qpid-jms/blob/70fe1b882e1381b1016a10b0707f6e112d4e0598/qpid-jms-client/src/main/java/org/apache/qpid/jms/provider/amqp/AmqpProviderFactory.java#L41] > and than further processed via > [PropertyUtil#replaceQuery|https://github.com/apache/qpid-jms/blob/70fe1b882e1381b1016a10b0707f6e112d4e0598/qpid-jms-client/src/main/java/org/apache/qpid/jms/util/PropertyUtil.java#L64] > the values gets double encoded. > See also Javadoc of > [PropertyUtil#replaceQuery|https://github.com/apache/qpid-jms/blob/70fe1b882e1381b1016a10b0707f6e112d4e0598/qpid-jms-client/src/main/java/org/apache/qpid/jms/util/PropertyUtil.java#L64]: > {quote} > The string values in the Map will be URL Encoded by this method which means > that if an > already encoded value is passed it will be double encoded resulting in > corrupt values > in the newly created URI. > {quote} > For a fix I created a [pull > request|https://github.com/apache/qpid-jms/pull/17]. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org
[jira] [Commented] (QPIDJMS-374) Double encoded query parameters
[ https://issues.apache.org/jira/browse/QPIDJMS-374?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16425897#comment-16425897 ] ASF GitHub Bot commented on QPIDJMS-374: Github user mibo commented on the issue: https://github.com/apache/qpid-jms/pull/17 Changed to use `PropertyUtil.parseQuery(remoteURI)` and added tests. > Double encoded query parameters > --- > > Key: QPIDJMS-374 > URL: https://issues.apache.org/jira/browse/QPIDJMS-374 > Project: Qpid JMS > Issue Type: Bug > Components: qpid-jms-client >Affects Versions: 0.31.0 >Reporter: Michael Bolz >Priority: Major > > When query parameters are parsed in > [TransportFactory|https://github.com/apache/qpid-jms/blob/70fe1b882e1381b1016a10b0707f6e112d4e0598/qpid-jms-client/src/main/java/org/apache/qpid/jms/transports/TransportFactory.java#L51] > and > [AmqpProviderFactory|https://github.com/apache/qpid-jms/blob/70fe1b882e1381b1016a10b0707f6e112d4e0598/qpid-jms-client/src/main/java/org/apache/qpid/jms/provider/amqp/AmqpProviderFactory.java#L41] > and than further processed via > [PropertyUtil#replaceQuery|https://github.com/apache/qpid-jms/blob/70fe1b882e1381b1016a10b0707f6e112d4e0598/qpid-jms-client/src/main/java/org/apache/qpid/jms/util/PropertyUtil.java#L64] > the values gets double encoded. > See also Javadoc of > [PropertyUtil#replaceQuery|https://github.com/apache/qpid-jms/blob/70fe1b882e1381b1016a10b0707f6e112d4e0598/qpid-jms-client/src/main/java/org/apache/qpid/jms/util/PropertyUtil.java#L64]: > {quote} > The string values in the Map will be URL Encoded by this method which means > that if an > already encoded value is passed it will be double encoded resulting in > corrupt values > in the newly created URI. > {quote} > For a fix I created a [pull > request|https://github.com/apache/qpid-jms/pull/17]. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org
[jira] [Commented] (QPIDJMS-374) Double encoded query parameters
[ https://issues.apache.org/jira/browse/QPIDJMS-374?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16421948#comment-16421948 ] ASF GitHub Bot commented on QPIDJMS-374: Github user mibo commented on the issue: https://github.com/apache/qpid-jms/pull/17 I agree that using `PropertyUtil.parseQuery(remoteURI)` would be better (which then does the `PropertyUtil.parseQuery(uri.getRawQuery())` call after a [null check](https://github.com/apache/qpid-jms/blob/70fe1b882e1381b1016a10b0707f6e112d4e0598/qpid-jms-client/src/main/java/org/apache/qpid/jms/util/PropertyUtil.java#L189)). I will change it and add the currently missing (JUnit) tests. But I think we can agree that using `PropertyUtil.parseQuery(remoteURI.getQuery())` is a bug. Btw. I oriented the fix by the [TransportFactory](https://github.com/apache/qpid-jms/blob/70fe1b882e1381b1016a10b0707f6e112d4e0598/qpid-jms-client/src/main/java/org/apache/qpid/jms/transports/TransportFactory.java#L51). > Double encoded query parameters > --- > > Key: QPIDJMS-374 > URL: https://issues.apache.org/jira/browse/QPIDJMS-374 > Project: Qpid JMS > Issue Type: Bug > Components: qpid-jms-client >Affects Versions: 0.31.0 >Reporter: Michael Bolz >Priority: Major > > When query parameters are parsed in > [TransportFactory|https://github.com/apache/qpid-jms/blob/70fe1b882e1381b1016a10b0707f6e112d4e0598/qpid-jms-client/src/main/java/org/apache/qpid/jms/transports/TransportFactory.java#L51] > and > [AmqpProviderFactory|https://github.com/apache/qpid-jms/blob/70fe1b882e1381b1016a10b0707f6e112d4e0598/qpid-jms-client/src/main/java/org/apache/qpid/jms/provider/amqp/AmqpProviderFactory.java#L41] > and than further processed via > [PropertyUtil#replaceQuery|https://github.com/apache/qpid-jms/blob/70fe1b882e1381b1016a10b0707f6e112d4e0598/qpid-jms-client/src/main/java/org/apache/qpid/jms/util/PropertyUtil.java#L64] > the values gets double encoded. > See also Javadoc of > [PropertyUtil#replaceQuery|https://github.com/apache/qpid-jms/blob/70fe1b882e1381b1016a10b0707f6e112d4e0598/qpid-jms-client/src/main/java/org/apache/qpid/jms/util/PropertyUtil.java#L64]: > {quote} > The string values in the Map will be URL Encoded by this method which means > that if an > already encoded value is passed it will be double encoded resulting in > corrupt values > in the newly created URI. > {quote} > For a fix I created a [pull > request|https://github.com/apache/qpid-jms/pull/17]. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org
[jira] [Commented] (QPIDJMS-374) Double encoded query parameters
[ https://issues.apache.org/jira/browse/QPIDJMS-374?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16419224#comment-16419224 ] ASF GitHub Bot commented on QPIDJMS-374: Github user tabish121 commented on the issue: https://github.com/apache/qpid-jms/pull/17 I believe the correct fix is to call PropertyUtil.parseQuery(remoteURI) instead and it will do the right thing, although we can't know until you provide some tests to validate it. > Double encoded query parameters > --- > > Key: QPIDJMS-374 > URL: https://issues.apache.org/jira/browse/QPIDJMS-374 > Project: Qpid JMS > Issue Type: Bug > Components: qpid-jms-client >Affects Versions: 0.31.0 >Reporter: Michael Bolz >Priority: Major > > When query parameters are parsed in > [TransportFactory|https://github.com/apache/qpid-jms/blob/70fe1b882e1381b1016a10b0707f6e112d4e0598/qpid-jms-client/src/main/java/org/apache/qpid/jms/transports/TransportFactory.java#L51] > and > [AmqpProviderFactory|https://github.com/apache/qpid-jms/blob/70fe1b882e1381b1016a10b0707f6e112d4e0598/qpid-jms-client/src/main/java/org/apache/qpid/jms/provider/amqp/AmqpProviderFactory.java#L41] > and than further processed via > [PropertyUtil#replaceQuery|https://github.com/apache/qpid-jms/blob/70fe1b882e1381b1016a10b0707f6e112d4e0598/qpid-jms-client/src/main/java/org/apache/qpid/jms/util/PropertyUtil.java#L64] > the values gets double encoded. > See also Javadoc of > [PropertyUtil#replaceQuery|https://github.com/apache/qpid-jms/blob/70fe1b882e1381b1016a10b0707f6e112d4e0598/qpid-jms-client/src/main/java/org/apache/qpid/jms/util/PropertyUtil.java#L64]: > {quote} > The string values in the Map will be URL Encoded by this method which means > that if an > already encoded value is passed it will be double encoded resulting in > corrupt values > in the newly created URI. > {quote} > For a fix I created a [pull > request|https://github.com/apache/qpid-jms/pull/17]. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org
[jira] [Commented] (QPIDJMS-374) Double encoded query parameters
[ https://issues.apache.org/jira/browse/QPIDJMS-374?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16418516#comment-16418516 ] ASF GitHub Bot commented on QPIDJMS-374: GitHub user mibo opened a pull request: https://github.com/apache/qpid-jms/pull/17 QPIDJMS-374: Use getRawQuery to avoid double encoding You can merge this pull request into a Git repository by running: $ git pull https://github.com/mibo/qpid-jms master Alternatively you can review and apply these changes as the patch at: https://github.com/apache/qpid-jms/pull/17.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #17 commit b89a1e8cebcde65575aee1bd0dbe3c2cce01ccee Author: mibo Date: 2018-03-29T06:52:29Z QPIDJMS-374: Use getRawQuery to avoid double encoding > Double encoded query parameters > --- > > Key: QPIDJMS-374 > URL: https://issues.apache.org/jira/browse/QPIDJMS-374 > Project: Qpid JMS > Issue Type: Bug > Components: qpid-jms-client >Affects Versions: 0.31.0 >Reporter: Michael Bolz >Priority: Major > > When query parameters are parsed in > [TransportFactory|https://github.com/apache/qpid-jms/blob/70fe1b882e1381b1016a10b0707f6e112d4e0598/qpid-jms-client/src/main/java/org/apache/qpid/jms/transports/TransportFactory.java#L51] > and > [AmqpProviderFactory|https://github.com/apache/qpid-jms/blob/70fe1b882e1381b1016a10b0707f6e112d4e0598/qpid-jms-client/src/main/java/org/apache/qpid/jms/provider/amqp/AmqpProviderFactory.java#L41] > and than further processed via > [PropertyUtil#replaceQuery|https://github.com/apache/qpid-jms/blob/70fe1b882e1381b1016a10b0707f6e112d4e0598/qpid-jms-client/src/main/java/org/apache/qpid/jms/util/PropertyUtil.java#L64] > the values gets double encoded. > See also Javadoc of > [PropertyUtil#replaceQuery|https://github.com/apache/qpid-jms/blob/70fe1b882e1381b1016a10b0707f6e112d4e0598/qpid-jms-client/src/main/java/org/apache/qpid/jms/util/PropertyUtil.java#L64]: > {quote} > The string values in the Map will be URL Encoded by this method which means > that if an > already encoded value is passed it will be double encoded resulting in > corrupt values > in the newly created URI. > {quote} > For a fix I created a [pull request|…]. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org