3961: reset object UUID when ensure_unique_name is set
authorTim Pierce <twp@curoverse.com>
Mon, 29 Sep 2014 15:06:49 +0000 (11:06 -0400)
committerTim Pierce <twp@curoverse.com>
Mon, 29 Sep 2014 15:09:52 +0000 (11:09 -0400)
commit99ba15c7f425c042fb61b454bba27324c80b7649
tree736c75a5469a08a027a62786b20ba0378c2d93b3
parent093bae4c914a872c501c3235f06096092725f015
3961: reset object UUID when ensure_unique_name is set

When saving an object that has to be renamed with ensure_unique_name,
force @object.uuid to nil so that validate_uuid will not be confused
into thinking we are trying to reassign the uuid.
services/api/app/controllers/application_controller.rb
services/api/test/fixtures/collections.yml
services/api/test/functional/arvados/v1/collections_controller_test.rb