Géry Debongnie
690446b5fd
[FIX] web: protect logged object in mockserver
...
Before this commit, when whe loglevel was set to 2 in the mock server,
we simply logged the parameters in the console, then give the same
object to the _performRpc route. Most of the time, it is not an issue,
but nothing prevents the _performRpc route to modify the args object.
And this happens with the /create route, which is very confusing: when
we have a breakpoint/debugger in the mock rpc function in a test, we see
the correct arguments passed to the function. However, if we look at
the arguments in the console, after the end of the test, we see other
values (for all fields) in the args.args[0] object.
The solution is to simply deep copying everything, so any modification
in the mockserver will not affect the logged object.
2017-07-02 09:34:35 +02:00
..
2017-06-27 12:41:47 +02:00
2017-06-25 07:07:03 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:49:30 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:49:30 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:49:30 +02:00
2017-06-26 10:49:30 +02:00
2017-06-26 10:49:30 +02:00
2017-06-18 04:27:20 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:49:30 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 19:19:39 +02:00
2017-06-25 07:07:03 +02:00
2017-06-18 07:07:11 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-18 04:27:20 +02:00
2017-06-26 10:49:30 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:49:30 +02:00
2017-06-25 04:27:29 +02:00
2017-06-26 19:19:39 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:49:30 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 13:00:18 +02:00
2017-06-26 10:49:30 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:49:30 +02:00
2017-06-26 10:49:30 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:49:30 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:49:30 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:49:30 +02:00
2017-06-26 10:49:30 +02:00
2017-06-25 04:27:29 +02:00
2017-06-26 10:13:25 +02:00
2017-06-27 12:41:47 +02:00
2017-06-25 07:07:03 +02:00
2017-06-27 12:41:47 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:49:30 +02:00
2017-06-18 07:07:11 +02:00
2017-06-26 10:13:25 +02:00
2017-06-25 04:27:29 +02:00
2017-06-26 10:49:30 +02:00
2017-06-26 10:13:25 +02:00
2017-06-15 18:44:16 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 19:19:39 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 19:19:39 +02:00
2017-06-15 19:24:03 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-27 12:41:47 +02:00
2017-06-14 13:45:10 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-27 15:25:34 +02:00
2017-06-26 10:49:30 +02:00
2017-06-26 10:49:30 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 19:19:39 +02:00
2017-06-26 10:13:25 +02:00
2017-06-27 12:41:47 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:49:30 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 19:19:39 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 19:19:39 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 11:19:46 +02:00
2017-06-26 10:13:25 +02:00
2017-06-18 04:27:20 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 11:19:46 +02:00
2017-06-26 10:13:25 +02:00
2017-06-20 09:00:47 +02:00
2017-06-26 19:19:39 +02:00
2017-06-26 10:49:30 +02:00
2017-06-26 10:13:25 +02:00
2017-06-25 04:27:29 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:49:30 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:49:30 +02:00
2017-06-26 10:49:30 +02:00
2017-06-26 19:19:39 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:49:30 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-20 09:00:32 +02:00
2017-06-26 19:19:39 +02:00
2017-06-18 04:27:20 +02:00
2017-06-26 19:19:39 +02:00
2017-06-26 19:19:39 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 19:19:39 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 19:19:39 +02:00
2017-06-26 19:19:39 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 19:19:39 +02:00
2017-06-26 10:49:30 +02:00
2017-06-26 10:13:25 +02:00
2017-06-18 04:27:20 +02:00
2017-06-26 10:49:30 +02:00
2017-06-26 10:49:30 +02:00
2017-06-26 10:13:25 +02:00
2017-06-27 12:41:47 +02:00
2017-06-27 12:41:47 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:49:30 +02:00
2017-06-18 04:27:20 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-07-02 09:34:35 +02:00
2017-06-26 10:13:25 +02:00
2017-06-28 12:41:35 +02:00
2017-06-26 11:25:54 +02:00
2017-06-26 11:25:54 +02:00
2017-06-26 11:25:54 +02:00
2017-06-26 11:25:54 +02:00
2017-06-26 19:19:39 +02:00
2017-06-26 11:25:54 +02:00
2017-06-26 18:38:41 +02:00
2017-06-26 11:25:54 +02:00
2017-06-26 11:25:54 +02:00
2017-06-26 11:25:54 +02:00
2017-06-26 11:25:54 +02:00
2017-06-26 19:19:39 +02:00
2017-06-26 11:25:54 +02:00
2017-06-26 11:25:54 +02:00
2017-06-27 12:41:47 +02:00
2017-06-26 11:25:54 +02:00
2017-06-26 11:25:54 +02:00
2017-06-26 11:25:54 +02:00
2017-06-26 11:25:54 +02:00
2017-06-26 11:25:54 +02:00
2017-06-26 11:25:54 +02:00
2017-06-26 11:25:54 +02:00
2017-06-26 11:25:54 +02:00
2017-06-26 11:25:54 +02:00
2017-06-26 11:25:54 +02:00
2017-06-26 11:25:54 +02:00
2017-06-26 11:25:54 +02:00
2017-06-26 11:25:54 +02:00
2017-06-26 19:19:39 +02:00
2017-06-26 11:25:54 +02:00
2017-06-26 11:25:54 +02:00
2017-06-26 11:25:54 +02:00
2017-06-26 11:25:54 +02:00
2017-06-26 13:00:18 +02:00
2017-06-26 11:25:54 +02:00
2017-06-26 19:19:39 +02:00
2017-06-26 11:25:54 +02:00
2017-06-26 11:25:54 +02:00
2017-06-26 11:25:54 +02:00
2017-06-26 11:25:54 +02:00
2017-06-26 11:25:54 +02:00
2017-06-26 11:25:54 +02:00
2017-06-26 11:25:54 +02:00