[ARVADOS] updated: f8ba79b88683be984913e28677c4522ca21019aa

git at public.curoverse.com git at public.curoverse.com
Mon May 5 21:24:51 EDT 2014


Summary of changes:
 services/api/lib/load_param.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

       via  f8ba79b88683be984913e28677c4522ca21019aa (commit)
      from  06c00e72091d7c058cbc607ed863a9444d26156c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit f8ba79b88683be984913e28677c4522ca21019aa
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Mon May 5 21:24:45 2014 -0400

    Fix so that a present but empty select parameter in queries no longer yields
    an error.

diff --git a/services/api/lib/load_param.rb b/services/api/lib/load_param.rb
index 7acf014..70387fe 100644
--- a/services/api/lib/load_param.rb
+++ b/services/api/lib/load_param.rb
@@ -105,7 +105,7 @@ module LoadParam
     when String
       begin
         @select = Oj.load params[:select]
-        raise unless @select.is_a? Array
+        raise unless @select.is_a? Array or @select.nil?
       rescue
         raise ArgumentError.new("Could not parse \"select\" param as an array")
       end

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list