qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lqu...@apache.org
Subject svn commit: r1757480 - /qpid/java/trunk/broker-plugins/management-http/src/main/java/org/apache/qpid/server/management/plugin/servlet/rest/RequestInfoParser.java
Date Wed, 24 Aug 2016 09:07:23 GMT
Author: lquack
Date: Wed Aug 24 09:07:23 2016
New Revision: 1757480

URL: http://svn.apache.org/viewvc?rev=1757480&view=rev
Log:
QPID-7247: [Java Broker] Fix RequestInfoParse when URL query parameter has key but no value.

Modified:
    qpid/java/trunk/broker-plugins/management-http/src/main/java/org/apache/qpid/server/management/plugin/servlet/rest/RequestInfoParser.java

Modified: qpid/java/trunk/broker-plugins/management-http/src/main/java/org/apache/qpid/server/management/plugin/servlet/rest/RequestInfoParser.java
URL: http://svn.apache.org/viewvc/qpid/java/trunk/broker-plugins/management-http/src/main/java/org/apache/qpid/server/management/plugin/servlet/rest/RequestInfoParser.java?rev=1757480&r1=1757479&r2=1757480&view=diff
==============================================================================
--- qpid/java/trunk/broker-plugins/management-http/src/main/java/org/apache/qpid/server/management/plugin/servlet/rest/RequestInfoParser.java
(original)
+++ qpid/java/trunk/broker-plugins/management-http/src/main/java/org/apache/qpid/server/management/plugin/servlet/rest/RequestInfoParser.java
Wed Aug 24 09:07:23 2016
@@ -225,7 +225,7 @@ public class RequestInfoParser
         final List<String> pairs = Arrays.asList(queryString.split("&"));
         for (String pairString : pairs)
         {
-            List<String> pair = Arrays.asList(pairString.split("="));
+            List<String> pair = new ArrayList<>(Arrays.asList(pairString.split("=")));
             if (pair.size() == 1)
             {
                 pair.add(null);



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message