Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When selecting values from URL, missing checkbox value causes problems on server #340

Closed
bugy opened this issue Sep 18, 2020 · 0 comments
Closed

Comments

@bugy
Copy link
Owner

bugy commented Sep 18, 2020

When you fill parameter values from URL, for example localhost:5000/index.html#/my_script?param1=abc&param2=10, all non-specified parameters are set to null/empty. For checkbox, the default value, in this case, should be false, and in the UI it's shown as false (not checked) indeed.
However, when trying to execute a script, server complains about missing value there.

Steps to reproduce:

  1. Create/find a script (my_script) with 2 parameters, text parameter param1 and boolean parameter param2
  2. Open the script in UI
  3. Change URL to HOST/index.html#/my_script?param1=abc and press enter
  4. Execute the script

Actual result: param1 on UI is equal to "abc", the checkbox is unchecked. However, execution fails with a server error:

Exception: Invalid value, should be bool or string. value=None

@bugy bugy added the bug label Sep 18, 2020
@bugy bugy added this to the 1.16.0 milestone Sep 18, 2020
@bugy bugy added the resolved label Sep 18, 2020
@bugy bugy closed this as completed Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant