nasa / cumulus-dashboard

Cumulus API Dashboard
Other
62 stars 28 forks source link

When creating a collection with multiple values in array, submitting the form fails #242

Closed mileswwatkins closed 7 years ago

mileswwatkins commented 7 years ago

There's an error that the array value is empty. It's probably the schema validation?

@dereklieu, noting this here, but I can go work on it if you don't have time right now. Just saw this happen with the LPDAAC folks, will try to reproduce locally after I finish my PR.

mileswwatkins commented 7 years ago

Okay, it looks like this wasn't an issue with the array submission, as it looked like on Todd's screen; it's instead an issue that if you:

  1. submit a schema that doesn't pass client JS validation, generating a local error message on the field
  2. fix that field error, such that client JS validation passes, and then submit the form data to the server, but get a Bad Request error message back from the server; the earlier field-validation error message will still be around, suggesting an incorrect source of the error.