Project

General

Profile

Actions

Bug #4651

closed

[API] Do not evaluate "false" value as true for a parameter whose type is advertised as boolean.

Added by Tom Clegg over 9 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
API
Target version:
Story points:
0.5

Description

Example: arv create job should not invoke find_or_create behavior.

Currently, it sends "find_or_create"=>"false" because that's the default advertised in the discovery document. In the controller, we test params[:find_or_create], which is "false", which is truthy, and we do the wrong thing.


Subtasks 3 (0 open3 closed)

Task #4654: Review 4651-boolean-paramsResolvedTom Clegg11/22/2014Actions
Task #4653: Add testsResolvedTom Clegg11/22/2014Actions
Task #4652: FixResolvedTom Clegg11/22/2014Actions
Actions

Also available in: Atom PDF