Closed martinlie closed 3 weeks ago
H2O Lightwave v1.2.0, Windows
A ValueError is thrown if the websocket message from the client contains data with spaces.
JSON with spaces should be accepted as data.
q.page['example'] = ui.form_card( box='tools', items=[ ui.textbox(name='textbox', label='Standard'), ui.button(name='button', label='Button') ] )
In the file wave/blob/main/py/h2o_lightwave/h2o_lightwave/server.py, function _parse_msg(), the max split is set to 3, but should be 2 (resulting in 3 parts).
Python documentation for str.split():
If maxsplit is given, at most maxsplit splits are done (thus, the list will have at most maxsplit+1 elements).
Wave SDK Version, OS
H2O Lightwave v1.2.0, Windows
Actual behavior
A ValueError is thrown if the websocket message from the client contains data with spaces.
Expected behavior
JSON with spaces should be accepted as data.
Steps To Reproduce
Proposed change
In the file wave/blob/main/py/h2o_lightwave/h2o_lightwave/server.py, function _parse_msg(), the max split is set to 3, but should be 2 (resulting in 3 parts).
Python documentation for str.split():