Move back to spring-boot 1.5 for bugfix
[aai/aai-common.git] / aai-core / src / main / java / org / onap / aai / restcore / util / URITools.java
index fc32f85..a757d3d 100644 (file)
@@ -47,21 +47,25 @@ public class URITools {
         MultivaluedMap<String, String> result = new MultivaluedHashMap<>();
         String queryParams = uri.getRawQuery();
         if (queryParams != null) {
-            String[] sections = queryParams.split("&");
-            String[] query = null;
-            String key, value = "";
-            for (String section : sections) {
-                query = section.split("=");
-                key = UriUtils.decode(query[0], "UTF-8");
-                if (query[1] != null) {
-                    query[1] = query[1].replaceAll("\\+", "%20");
-                }
-                value = UriUtils.decode(query[1], "UTF-8");
-                if (result.containsKey(key)) {
-                    result.add(key, value);
-                } else {
-                    result.putSingle(key, value);
+            try {
+                String[] sections = queryParams.split("&");
+                String[] query = null;
+                String key, value = "";
+                for (String section : sections) {
+                    query = section.split("=");
+                    key = UriUtils.decode(query[0], "UTF-8");
+                    if (query[1] != null) {
+                        query[1] = query[1].replaceAll("\\+", "%20");
+                    }
+                    value = UriUtils.decode(query[1], "UTF-8");
+                    if (result.containsKey(key)) {
+                        result.add(key, value);
+                    } else {
+                        result.putSingle(key, value);
+                    }
                 }
+            } catch (UnsupportedEncodingException e) {
+
             }
         }
         return result;