From 9e14443f6ec9fe760058153c0abc5313427cf55f Mon Sep 17 00:00:00 2001 From: Simon Bernard Date: Fri, 1 Sep 2023 17:28:58 +0200 Subject: [PATCH] Fix ClientServlet which doesn't parse write attributes correctly. --- .../org/eclipse/leshan/server/demo/servlet/ClientServlet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leshan-server-demo/src/main/java/org/eclipse/leshan/server/demo/servlet/ClientServlet.java b/leshan-server-demo/src/main/java/org/eclipse/leshan/server/demo/servlet/ClientServlet.java index 3ef4369576..83f5e88e62 100644 --- a/leshan-server-demo/src/main/java/org/eclipse/leshan/server/demo/servlet/ClientServlet.java +++ b/leshan-server-demo/src/main/java/org/eclipse/leshan/server/demo/servlet/ClientServlet.java @@ -330,7 +330,7 @@ protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws Se // create & process request WriteAttributes request target = StringUtils.removeEnd(target, path[path.length - 1]); LwM2mAttributeSet attributes = new LwM2mAttributeSet( - attributeParser.parseQueryParams(req.getQueryString())); + attributeParser.parseUriQuery(req.getQueryString())); WriteAttributesRequest request = new WriteAttributesRequest(target, attributes); WriteAttributesResponse cResponse = server.send(registration, request, extractTimeout(req)); processDeviceResponse(req, resp, cResponse);