Security bug fix to act_as_system_user to restore correct user if an
authorPeter Amstutz <peter.amstutz@curoverse.com>
Wed, 23 Apr 2014 17:00:03 +0000 (13:00 -0400)
committerPeter Amstutz <peter.amstutz@curoverse.com>
Wed, 23 Apr 2014 17:04:05 +0000 (13:04 -0400)
commit1059fd1f9e22ebcae51413d2b0fde0416c71c79b
tree9ee3d140e414133fe23efaeaeaa0363b1a9da7f2
parent49aaa9f26dfaf50056abd7527976b681be26208b
Security bug fix to act_as_system_user to restore correct user if an
exception is raised.  Also adds tests for act_as_system_user.

Also a minor style cleanup of "== []" to ".empty?" and some additional
checks to test "refuse to activate a user before signing UA".
services/api/app/controllers/arvados/v1/users_controller.rb
services/api/lib/current_api_client.rb
services/api/test/functional/arvados/v1/users_controller_test.rb
services/api/test/unit/application_test.rb [new file with mode: 0644]