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

Problem with remote URL options validation #5030

Closed
jtobard opened this issue Jul 3, 2019 · 0 comments

Comments

@jtobard
Copy link
Contributor

commented Jul 3, 2019

Describe the bug
Using Remote URL with validation fails with message
Option name value: value was not in the allowed values: []
See screenshot.

This happens using a JSON with the structure name,value, using the simple structure of value only the job pass the validation correctly.

My Rundeck detail

  • Rundeck version: 3.1.0-SNAPSHOT
  • install type: war
  • OS Name/version: Ubuntu
  • DB Type/version: h2

To Reproduce
Steps to reproduce the behavior:

  1. Create a job with an option using Remote URL
  2. Restrict using Enforced from Allowed Values
  3. Required yes
  4. Add any step.
  5. Save the job.
  6. Run the job selecting any value from the list of options.

Use this JSON as provider:

[
   {"name":"Linux", "value":"linux.json"},
   {"name":"Windows",  "value":"windows.json"}
]

Expected behavior
The job should run without any warning.

Screenshots
image

Additional context

Using this JSON as provider works:

[
  "linux.json",
   "windows.json"
]

@jtobard jtobard added the bug label Jul 3, 2019

@jtobard jtobard added this to the 3.1.0-RC2 milestone Jul 3, 2019

carlosrfranco added a commit to carlosrfranco/rundeck that referenced this issue Jul 4, 2019

carlosrfranco added a commit to carlosrfranco/rundeck that referenced this issue Jul 4, 2019

@jtobard jtobard closed this in aae1eea Jul 8, 2019

jtobard added a commit that referenced this issue Jul 8, 2019

Merge pull request #5031 from carlosrfranco/issue/5030
Fixes #5030 - This changes make validations if the options from URL is a json object or a simple array list of options…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.