mmcgrana/ring — Issue #37: wrap-nested-params only includes the last value in the vector
Author: ibdknox
Created: 2011-10-10 00:06:36+00:00
State: open

As of Ring 0.3.11, nested parameters are no longer being vectorized correctly. The following code will contain only the last value:

(defn nested-test [_]
(html
[:head [:title "test"]]
[:body
[:form {:action "/submit" :method "POST"}
[:input {:type :text :name "mything[]" :value "10"}]
[:input {:type :text :name "mything[]" :value "20"}]
[:input {:type :submit}]]]))

(defn submit [request]
(println (request :params)))

Expected:
{:mything ["10" "20"]}

Actual:
{:mything ["20"]}

For complete code and more context see this thread:
https://groups.google.com/d/msg/clj-noir/Hub0ica7X6c/-f22jkEEr0sJ