killbill-memoizeit

Remove extra URL decoding (since this is not idempotent and

4/24/2014 8:30:35 PM

Details

diff --git a/jaxrs/src/main/java/org/killbill/billing/jaxrs/resources/JaxRsResourceBase.java b/jaxrs/src/main/java/org/killbill/billing/jaxrs/resources/JaxRsResourceBase.java
index 2d37be0..e102b77 100644
--- a/jaxrs/src/main/java/org/killbill/billing/jaxrs/resources/JaxRsResourceBase.java
+++ b/jaxrs/src/main/java/org/killbill/billing/jaxrs/resources/JaxRsResourceBase.java
@@ -321,15 +321,7 @@ public abstract class JaxRsResourceBase implements JaxrsResource {
         }
 
         for (final String pluginProperty : pluginProperties) {
-            // Jersey should decode the (double encoded) query parameters, but just in case...
-            final String keyValue;
-            try {
-                keyValue = URLDecoder.decode(pluginProperty, "UTF-8");
-            } catch (final UnsupportedEncodingException e) {
-                throw new IllegalStateException("UTF-8 should be available on any Kill Bill platform");
-            }
-
-            final List<String> property = ImmutableList.<String>copyOf(keyValue.split("="));
+            final List<String> property = ImmutableList.<String>copyOf(pluginProperty.split("="));
             final String key = property.get(0);
             final String value = property.size() == 1 ? null : Joiner.on("=").join(property.subList(1, property.size()));
             properties.add(new PluginProperty(key, value, false));