]> source.dussan.org Git - vaadin-framework.git/commit
fixes incorrect JSONArray/String usage in ServerRpcHandler (#14471)
authorFabian Lange <lange.fabian@gmail.com>
Thu, 28 Aug 2014 16:23:15 +0000 (19:23 +0300)
committerLeif Åstrand <leif@vaadin.com>
Thu, 28 Aug 2014 16:29:38 +0000 (19:29 +0300)
commit2c3306cc9beb0366f6017d964849876337e776cd
tree324759fd8de5dd6d11a39fc3632527d780d1415c
parent5889379b447f9a8fc453fad0b95f3fbc9431d9d2
fixes incorrect JSONArray/String usage in ServerRpcHandler (#14471)

As described by Johannes, the RPCRequest constructor first takes whole
JSON as string and builds its attribute json from it (by parsing).
Then it reads from this parsed JSON the array called "rpc".
However it previously did a .toString on it only to re-parse it.
Newer json versions complain that "rpc" is not a string, but an array.

Change-Id: If4bb45abad551b183d757f0aa326c37c070ce103
server/src/com/vaadin/server/communication/ServerRpcHandler.java