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

If a String parameter is empty in a Java based job call, Roddy will fail: Not able to convert entry #80

Open
dankwart-de opened this issue Jul 31, 2017 · 1 comment
Labels

Comments

@dankwart-de
Copy link
Contributor

This is a bug in the GenericMethod class

if (split.length != 2)
                    throw new RuntimeException("Not able to convert entry ${entry.toString()} to parameter.")
@vinjana
Copy link
Contributor

vinjana commented Oct 4, 2017

It makes sense to unset an environment variable or set it to an empty value. Therefore, this should not fail but result in the setting of an empty value (VARNAME=).

Possible solutions:

  • extra code to allow/disallow empty values
  • always request a value, but handle empty values with Optional instances (None = empty value.)

@vinjana vinjana changed the title If a String parameter is empy in a Java based job call, Roddy will fail: Not able to convert entry If a String parameter is empty in a Java based job call, Roddy will fail: Not able to convert entry Jan 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Backlog
Development

No branches or pull requests

2 participants