Bug #3185

Job validation fails with no error message if runtime_constraints is nil.

Added by Tom Clegg almost 5 years ago. Updated almost 5 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
-
Category:
-
Target version:
Start date:
07/07/2014
Due date:
% Done:

100%

Estimated time:
(Total: 1.00 h)
Story points:
0.5

Subtasks

Task #3186: Review 3185-job-invalid-without-errorsResolvedPeter Amstutz

Associated revisions

Revision e0f9e708
Added by Peter Amstutz almost 5 years ago

Merge branch '3185-job-invalid-without-errors' refs #3185

History

#1 Updated by Tom Clegg almost 5 years ago

  • Status changed from New to In Progress

#2 Updated by Peter Amstutz almost 5 years ago

I tried to submit the following job:

arv job create --job "{\"script\":\"hash\",\"script_parameters\":{\"input\":\"c1bad4b39ca5a924e481008009d94e32+210\"},\"script_version\":\"master\",\"repository\":\"arvados\",\"nondeterministic\":null,\"output_is_persistent\":false,\"runtime_constraints\":null,\"owner_uuid\":\"4xphq-j7d0g-lfabuhbixq4e9lq\"}" 

On API server logging, it reports multiple errors:

#<ActiveRecord::RecordInvalid: Validation failed: Runtime constraints must be a Hash, not a NilClass, Owner uuid '4xphq-j7d0g-lfabuhbixq4e9lq' not found, Script version master does not resolve to a commit>

However, the 'arv' command line only presents the first error:

Error: Runtime constraints must be a Hash, not a NilClass

I haven't looked to see if this is a bug in 'arv' or a bug in API server error reporting.

#3 Updated by Peter Amstutz almost 5 years ago

I think this is a bug in "arv" because looking at validation errors in another spot, multiple errors are being returned properly.

#4 Updated by Brett Smith almost 5 years ago

Tom, can this bug be closed? I see the first associated branch is merged. Are there sub-bugs still lurking about?

#5 Updated by Ward Vandewege almost 5 years ago

  • Status changed from In Progress to Resolved

Also available in: Atom PDF